Update a collection
PATCH
Only defaultTtlSeconds can change. Indexes are fixed at creation: changing them would require rewriting every item in the collection.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
collectionstringrequiredCollection name.
Body
application/json
defaultTtlSecondsintegerrequiredNew default TTL, or null to clear it.
Limitsmin 60 · max 63072000
Responses
200Collection updated.
collectionobjectrequiredA namespace of JSON documents addressed by key.
6 properties
namestringrequiredindexesobject[]requiredFields that
POST /v1/memory/collections/{collection}/querycan filter on. Immutable after creation.1 properties
fieldstringrequired
defaultTtlSecondsintegerrequiredTTL applied to items written without their own
ttlSeconds. Null means items are kept until deleted.statusstringrequiredactive, ordeletingwhile a delete drains in the background.createdAtstring<date-time>requiredupdatedAtstring<date-time>required
400Invalid TTL.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Collection not found.
codestringrequiredmessagestringrequireddetailsobject