Create a gist

POST {{baseUrl}}/gists

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.

Request Body

{"files"=>"<object>", "description"=>"<string>", "public"=>false}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;url&quot;:&quot;https://api.github.com/gists/aa5a315d61ae9438b18d&quot;,&quot;forks_url&quot;:&quot;https://api.github.com/gists/aa5a315d61ae9438b18d/forks&quot;,&quot;commits_url&quot;:&quot;https://api.github.com/gists/aa5a315d61ae9438b18d/commits&quot;,&quot;id&quot;:&quot;aa5a315d61ae9438b18d&quot;,&quot;node_id&quot;:&quot;MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk&quot;,&quot;git_pull_url&quot;:&quot;https://gist.github.com/aa5a315d61ae9438b18d.git&quot;,&quot;git_push_url&quot;:&quot;https://gist.github.com/aa5a315d61ae9438b18d.git&quot;,&quot;html_url&quot;:&quot;https://gist.github.com/aa5a315d61ae9438b18d&quot;,&quot;created_at&quot;:&quot;2010-04-14T02:15:15Z&quot;,&quot;updated_at&quot;:&quot;2011-06-20T11:34:15Z&quot;,&quot;description&quot;:&quot;Hello World Examples&quot;,&quot;comments&quot;:0,&quot;comments_url&quot;:&quot;https://api.github.com/gists/aa5a315d61ae9438b18d/comments/&quot;}