Snippets
Create a snippet
Save a snippet or a hashtag group in a workspace.
POST
Needs
snippets:create, and a role in the workspace that can create snippets: owners, managers, content managers and content creators can. See Permissions.kind: "snippet" for any text, like a sign-off or a link, and kind: "hashtags" for a hashtag group. name is 1 to 80 characters and body 1 to 5,000, both counted after the spaces at the start and end are dropped. Names need not be unique.
Every plan has snippets, Free included. A workspace keeps at most 500, both kinds together: one more is refused with 422 and the message This workspace has 500 saved snippets, the most it can keep. Delete one to save another.
The workspace is checked first, then your role, then the body: a role that can’t create snippets gets 403 whatever the body says.
Errors
Related
- List snippets: the snippets there are.
- Update a snippet: change one.
Authorizations
Body
application/json
Response
The snippet.
A saved snippet or hashtag group to drop into posts.