Skip to main content
PUT
/
v1
/
orgs
/
{orgSlug}
/
retention
Upsert the org-level retention policy
curl --request PUT \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/orgs/{orgSlug}/retention \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversations_retention_days": 123,
  "documents_retention_days": 123,
  "tasks_retention_days": 123,
  "artifacts_retention_days": 123
}
'
{
  "policy": {},
  "effective": {
    "conversations_retention_days": 123,
    "documents_retention_days": 123,
    "tasks_retention_days": 123,
    "artifacts_retention_days": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

orgSlug
string
required
Maximum string length: 64

Body

application/json
conversations_retention_days
integer | null
documents_retention_days
integer | null
tasks_retention_days
integer | null
artifacts_retention_days
integer | null

Response

Upserted policy.

policy
object
effective
object

Resolved retention values (agent → org → platform defaults).