Update Snippet
Update selected snippet fields, replacing content when supplied.
Personal tokens are not supported for this endpoint. Use an integration API key. Your account must also have access to the requested data. Authentication
Omit content to preserve it. Supplied content replaces the document; there is no content-version conflict check on this update.
Content is a complete replacement, not a patch of individual nodes. Responses return JSON-encoded content in serialization format 0.50. Use a snippet document rather than assuming a story document is compatible.
Personal access tokens are not supported for this endpoint. Use an integration API key with the required permissions.
API_keyAuthorizationBearer <token>Bearer authentication using an integration API key, or a personal access token only where the operation explicitly supports it. Every listed personal-token scope is required; owner permissions and newsroom access still apply.
id*stringSnippet ID or UUID.
application/json- body
title?stringcontent?|Serialized snippet content JSON or a single-key json wrapper. A parsed document or text wrapper is not accepted.
OK
application/json- response
snippet?curl -X PATCH 'https://api.prezly.com/v2/snippets/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "snippet": { "id": 0, "uuid": "string", "title": "string", "content": "string", "block_types": [ "string" ], "creator": { "id": 0, "email": "http://example.com", "name": "string", "display_name": "string", "first_name": "string", "last_name": "string", "avatar_url": "http://example.com" }, "last_modifying_user": { "id": 0, "email": "http://example.com", "name": "string", "display_name": "string", "first_name": "string", "last_name": "string", "avatar_url": "http://example.com" }, "created_at": "string", "modified_at": "string" }}