Unstar a gist
delete
http://HOSTNAME/api/v3/gists/{gist_id}/star
Path Parameters
gist_idstringrequired
gist_id parameter
Response
Response
Response
delete/gists/{gist_id}/star
Path Parameters
Get a gist revision
get
http://HOSTNAME/api/v3/gists/{gist_id}/{sha}
Path Parameters
gist_idstringrequired
gist_id parameter
shastringrequired
Response
application/json
Response
application/json
Response
Gist Simple
Gist Simple
forksarray | null[object]DEPRECATED
Show Child Parameters
historyarray | null[object]DEPRECATED
Gist History
Show Child Parameters
fork_ofobject | null
Gist
Show Child Parameters
urlstring
forks_urlstring
commits_urlstring
idstring
node_idstring
git_pull_urlstring
git_push_urlstring
html_urlstring
filesobject
publicboolean
created_atstring
updated_atstring
descriptionstring | null
commentsinteger
userstring | null
comments_urlstring
ownerobject
Simple User
Show Child Parameters
truncatedboolean
get/gists/{gist_id}/{sha}
Path Parameters
application/json
List gists for a user
Lists public gists for the specified user:
get
http://HOSTNAME/api/v3/users/{username}/gists
Query Parameters
sincestring(date-time)
Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
per_pageinteger
Results per page (max 100)
Default:30
pageinteger
Page number of the results to fetch.
Default:1
Path Parameters
usernamestringrequired
Response
application/json
Response
application/json
Response
Base Gist
urlstring(uri)required
forks_urlstring(uri)required
commits_urlstring(uri)required
idstringrequired
node_idstringrequired
git_pull_urlstring(uri)required
git_push_urlstring(uri)required
html_urlstring(uri)required
filesobjectrequired
publicbooleanrequired
created_atstring(date-time)required
updated_atstring(date-time)required
descriptionstring | nullrequired
commentsintegerrequired
userobject | nullrequired
Simple User
Show Child Parameters
comments_urlstring(uri)required
ownerobject
Simple User
Show Child Parameters
truncatedboolean
forksarray
historyarray
get/users/{username}/gists
Path Parameters
Query Parameters
application/json
git
Raw Git functionality.
Create a blob
post
http://HOSTNAME/api/v3/repos/{owner}/{repo}/git/blobs
Path Parameters
ownerstringrequired
repostringrequired
Body
application/json
Body
application/json
contentstringrequired
The new blob’s content.
encodingstring
The encoding used for content. Currently, "utf-8" and "base64" are supported.
Default:utf-8
Response
application/json
Response
application/json
Response
Short Blob
Short Blob
urlstringrequired
shastringrequired
post/repos/{owner}/{repo}/git/blobs
Path Parameters
Body
{
"content": "Content of the blob",
"encoding": "utf-8"
}
application/json