Skip to content

Upserts a per-class schedule.

PUT
/v1/m/compliance/retention/policies/{class}
curl --request PUT \
--url https://example.com/v1/m/compliance/retention/policies/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "basis": "example", "disposition": "retain", "enabled": true, "retention_days": 1 }'

Upserts a per-class schedule. A retain schedule (or a purge one kept disabled) persists directly — documenting retention is evidence, not danger.

class
required
string

Path parameter class.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
basis
string
disposition
required
string
Allowed values: retain purge
enabled
boolean
retention_days
required
integer
>= 1 <= 36500

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}