Memory

Update a collection

Changed on

Only defaultTtlSeconds can change. Indexes are fixed at creation: changing them would require rewriting every item in the collection.

patch/v1/memory/collections/{collection}

Request

  • Base URL
    https://api.zavu.dev
  • URL
    https://api.zavu.dev/v1/memory/collections/{collection}
  • Auth
    HTTP bearer

Path parameters

collectionstring required

Collection name.

Request body

defaultTtlSecondsinteger nullable required

New default TTL, or null to clear it.

Response

Collection updated.

Example response

{
  "collection": {
    "name": "orders"
  }
}

Changes