set_retention_policy
Set workspace retention in days for messages, events, finished deliveries, and unreferenced media, plus media quota; omit a kind to inherit instance limits, or clear the policy with no arguments.
Instructions
Replace this workspace's own retention for its messages, events, finished deliveries and unreferenced media, in days (1 to 3650 each), and its media quota in bytes. A workspace may keep rows for less time than the instance does, never longer, and hold less media, never more: a value above the instance's is refused. Omit or null a kind to keep it as long as the instance does; no arguments clears the policy. Old messages are erased with their embeddings and content keys. A workspace under legal hold loses nothing whatever its policy says. Requires token:admin.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_retention_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_days | No | days to keep an attachment, screenshot or recording once nothing in the workspace references it; null/omit = as long as the instance | |
| events_days | No | days to keep event-log rows; null/omit = as long as the instance | |
| messages_days | No | days to keep messages; null/omit = as long as the instance (forever) | |
| deliveries_days | No | days to keep finished deliveries; null/omit = as long as the instance | |
| media_quota_bytes | No | bytes of attachments, screenshots and recordings the workspace may hold; null/omit = the instance's quota |