Gist ID
RequiredTextThe hash at the end of the gist's URL.
This input offers a picker for gist from your connected account. You can also supply its value directly.
aa5a315d61ae9438b18d
Change a gist's description, or edit, rename, add and remove its files.
First, connect GitHub in Services. Then open Actions → + → GitHub and choose Update a Gist.
Running or testing this action changes something in your connected service.
Files carries every change, keyed by the file's *current* name:
• Replace the text — {"note.md": {"content": "New text"}}
• Rename it — {"note.md": {"filename": "todo.md"}}
• Remove it — {"note.md": null}
• Add one — use a name the gist does not have yet.
Files left out are untouched, so this appends nothing: content replaces the file whole. An action that adds a line has to read the gist first and send back the old text plus the new line.
Public cannot be changed here. A gist created secret stays secret.
Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.
The hash at the end of the gist's URL.
This input offers a picker for gist from your connected account. You can also supply its value directly.
aa5a315d61ae9438b18d
Replaces the gist's description. Shown as its title.
Keyed by current file name. Null removes a file.
{"note.md":{"content":"New text"}}In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.
| Returned field | Type | Meaning |
|---|---|---|
id | string | The hash used in every other gist endpoint. |
html_url | string | The page to open or share. |
description | string | Shown as the gist's title. Null when unset. |
public | boolean | False means unlisted, not private. |
comments | integer | Whole-number value. |
created_at | string | ISO 8601. |
updated_at | string | Text value. |
truncated | boolean | True when a file was too large to include whole. |
owner | object | A group of named values. |
owner.login | string | Username. |
owner.id | integer | Whole-number value. |
owner.html_url | string | Their profile page. |
owner.avatar_url | string | Text value. |
owner.type | string | User, Organization or Bot. |
files | object | Keyed by file name, so the keys are yours and cannot be listed here. Each value has filename, type, language, size, raw_url and — unless truncated — content. |
If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.
Request: PATCH https://api.github.com/gists/{gist_id}
Action identifier: github.gists.update.v1
Permissions declared for this action: gists:write. The account’s own access rules also apply.
| Input | Request key | Location |
|---|---|---|
| Gist ID | gist_id | path |
| Description | description | body |
| Files | files | body |