v4

latestOpenAPI 3.0.0MIT2026-07-311494532.1 MB
Contexts

Update a context

Update the data of an existing context. type and id are required fields, data is required. Only the data field is updated, the rest of the context is not affected. If the context does not exist, it returns the 404 response

patch/v2/contexts/{type}/{id}

Path parameters

idstring required

Context ID

typestring required

Context type

Headers

idempotency-keystring

A header for idempotency purposes

Request body

dataobject required

Custom data to associate with this context. Replaces existing data.

Example request

{
  "data": {
    "tenantName": "Acme Corp",
    "region": "us-east-1",
    "settings": {
      "theme": "dark"
    }
  }
}

Response

OK

typestring required

Context type (e.g., tenant, app, workspace)

idstring required

Unique identifier for this context

dataobject required

Custom data associated with this context

createdAtstring required

Creation timestamp

updatedAtstring required

Last update timestamp