Update a snippet
Authorizations
Path Parameters
ID of the snippet to update.
Body
New title for the snippet (optional).
50"Updated Welcome Message"
New keyboard shortcut (optional, lowercase, numbers, and dashes only).
40^[a-z0-9-]*$"welcome2"
New array of category IDs (optional, replaces existing categories).
[2, 4]
New array of actions (optional, 1-10 actions if provided).
1 - 10 elements[
{
"name": "assign",
"data": { "agent_id": 5 }
}
]
Response
Snippet updated successfully.
Unique identifier for the snippet
42
Title of the snippet
250"Welcome Message"
Timestamp when the snippet was created (UTC)
"2024-01-15T10:30:00Z"
Number of times this snippet has been applied
15
Array of category IDs this snippet belongs to (0 represents root category)
[1, 3]
Array of actions to be applied when the snippet is used
[
{
"id": 1,
"name": "status",
"data": { "status": "closed" },
"sort": 0
}
]
Optional keyboard shortcut to quickly insert the snippet (lowercase, numbers, and dashes only)
40^[a-z0-9-]*$"welcome"
Timestamp when the snippet was last applied to a conversation (UTC)