Skip to main content
PUT
Update a snippet
Needs snippets:update, and a role in the workspace that can edit snippets: owners, managers, content managers and content creators can. See Permissions.
Send only what changes: a field left out stays as it is. A field sent follows the same rules as on create: name 1 to 80 characters, body 1 to 5,000, kind snippet or hashtags. Posts that already used the snippet’s text keep the old text.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

The snippet's id.

Body

application/json
kind
enum<string>

snippet for any saved text, hashtags for a hashtag group.

Available options:
snippet,
hashtags
name
string

Spaces at the start and end are dropped before it is counted and saved.

Required string length: 1 - 80
body
string

Spaces at the start and end are dropped.

Required string length: 1 - 5000

Response

The snippet after the change.

A saved snippet or hashtag group to drop into posts.

id
integer
required
workspace_id
integer
required
kind
enum<string>
required

snippet for any saved text, hashtags for a hashtag group.

Available options:
snippet,
hashtags
name
string
required
Maximum string length: 80
body
string
required
Maximum string length: 5000
created_by
integer | null
required

The user who saved it; null once that user is deleted.

created_at
string<date-time>
required
updated_at
string<date-time>
required