Skip to content

Change a snippet

PATCH
/v1/snippets/{id}
curl --request PATCH \
--url https://beta-api.plune.ai/v1/snippets/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "template": false }'

Title, text or the template flag. Cases that already inserted the snippet keep their copy — a snippet is not a link.

id
required
string
Media type application/json

Any of the three fields; an empty object is refused (400).

object
title
string
>= 1 characters <= 200 characters
text
string
>= 1 characters
template
boolean
Example
{
"template": false
}

The snippet as it is now

Media type application/json
object
id
required
string format: uuid
projectId
required
string
title
required

Unique within the project — the name in the «Insert snippet» menu.

string
>= 1 characters <= 200 characters
text
required

Markdown, up to 16 384 bytes. Inserted into a case as a copy: editing the snippet later changes no case.

string
>= 1 characters
template
required

Listed under «Start from» on a new case when true.

boolean
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{
"id": "6f1c2b3a-0000-4000-8000-0000000000f2",
"projectId": "u-shop::default",
"title": "Refund — checklist",
"text": "## Steps\n* Open the order and choose “Refund”.\n* Enter the amount and confirm.\n\n## Expected result\nThe refund is listed with the entered amount.",
"template": false,
"createdAt": "2026-09-16T09:12:04.151Z",
"updatedAt": "2026-09-16T09:12:04.151Z"
}

Invalid body, or nothing to change

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

No / invalid token or session

No such snippet in your projects

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

The new title is taken

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}
Retry-After
integer

Seconds until the window rolls over