{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Allows you to update a gist's description and to update, delete, or rename gist files. Files\nfrom the previous version of the gist that aren't explicitly changed during an edit\nare unchanged.\n\nAt least one of `description` or `files` is required.\n\nThis endpoint supports the following custom media types. For more information, see \"[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types).\"\n\n- **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.","properties":{"path":{"type":"object","properties":{"gist_id":{"type":"string","description":"The unique identifier of the gist."}},"required":["gist_id"],"additionalProperties":false},"body":{"properties":{"description":{"description":"The description of the gist.","type":"string","examples":["Example Ruby script"]},"files":{"description":"The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.","type":"object","additionalProperties":{"type":["object","null"],"properties":{"content":{"description":"The new content of the file.","type":"string"},"filename":{"description":"The new filename for the file.","type":["string","null"]}}},"examples":[{"hello.rb":{"content":"blah","filename":"goodbye.rb"}}]}},"type":["object","null"],"examples":[{"description":"An updated gist description","files":{"README.md":{"content":"Hello World from GitHub"}}}]}},"required":["path","body"],"additionalProperties":false},"name":"Update a gist","id":"github.gists.update","example":{"path":{"gist_id":"example"},"body":{"description":"An updated gist description","files":{"README.md":{"content":"Hello World from GitHub"}}}},"maxRequests":1,"summary":false}}