Skip to main content
PUT

Update Snippet

Updates a saved snippet or hashtag group. Send only the fields you want to change; fields you leave out stay as they are.

Request

integer
required
The ID of the snippet to update
string
snippet or hashtags
string
New name, 1 to 80 characters after spaces at the start and end are removed
string
New text, up to 5,000 characters

Response

The updated snippet object.

Code Examples

Error Codes

Unauthorized
Missing or invalid API token
Forbidden
The key does not have the snippets:update permission, or the key’s person’s role in the workspace does not allow editing snippets
Not Found
Snippet not found, or it belongs to a workspace the key’s person is not in
Unprocessable Entity
Validation errors: a kind other than snippet or hashtags, an empty or over-80-character name, an empty or over-5,000-character body