apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /gists/{gist_id} — GitHub API

GitHub playground

Update a gist

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

2 body fields
  • description · optional · string — The description of the gist.
  • files · optional · object — The gist files to be updated, renamed, or deleted. Each `key` must match the current filename (including extension) of the targeted gist file. For example: `hello.py`. To delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be deleted if the specified object does not contain at least one of `content` or `filename`.