Skip to main content
POST
/
api
/
apps
/
{app_id}
/
collections
/
{collection}
/
retention
Set retention configuration for a collection POST /api/apps/:app_id/collections/:collection/retention
curl --request POST \
  --url https://api.example.com/api/apps/{app_id}/collections/{collection}/retention \
  --header 'Content-Type: application/json' \
  --data '
{
  "retention_days": 1
}
'

Path Parameters

app_id
string
required

Application ID

collection
string
required

Collection name

Body

application/json

Request to configure retention for a collection

retention_days
integer<int32> | null

Retention period in days (None = permanent storage) Note: First 30 days are always free

Required range: x >= 0

Response

Retention configuration updated