Create a gist
Allows you to add a new gist with one or more files.
Note: Don’t name your files “gistfile” with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.
Body
application/json
Body
Description of the gist
Example:Example Ruby script
Names and content for the files that make up the gist
Example:{"hello.rb":{"content":"puts \"Hello, World!\""}}
One OfFlag indicating whether the gist is public
Default:false
Example:true
Response
application/json
Response
Response
Gist Simple
Gist Simple
Show Child Parameters
Gist History
Show Child Parameters
Gist
Show Child Parameters
Simple User
Show Child Parameters
Body
List public gists
List public gists sorted by most recently updated to least recently updated.
Note: With pagination, you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.
Query Parameters
Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
application/json
Response
Response
Base Gist
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Query Parameters
List starred gists
List the authenticated user’s starred gists:
Query Parameters
Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
application/json
Response
Response
Base Gist
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Query Parameters
Get a gist
Path Parameters
gist_id parameter
Response
application/json
Response
Response
Gist Simple
Gist Simple
Show Child Parameters
Gist History
Show Child Parameters
Gist
Show Child Parameters
Simple User
Show Child Parameters
Path Parameters
Update a gist
Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren’t explicitly changed during an edit are unchanged.
Path Parameters
gist_id parameter
Body
application/json
Body
Any OfResponse
application/json
Response
Response
Gist Simple
Gist Simple
Show Child Parameters
Gist History
Show Child Parameters
Gist
Show Child Parameters
Simple User