PATCH /gists/{gist_id}
Allows you to update a gist's description and to update, delete, or rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.
At least one of description
or files
is required.
This endpoint supports the following custom media types. For more information, see "Media types."
application/vnd.github.raw+json
: Returns the raw markdown. This is the default if you do not pass any specific media type.application/vnd.github.base64+json
: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
Servers
- https://api.github.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
gist_id |
String | Yes |
The unique identifier of the gist. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
files |
Object | No |
The gist files to be updated, renamed, or deleted. Each To delete a file, set the whole file to null. For example: |
files.name |
Object | No | |
files.name.filename |
String | No |
The new filename for the file. |
files.name.content |
String | No |
The new content of the file. |
description |
String | No |
The description of the gist. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.