Update Global Context Document
PATCH /global-context/documents/{doc_id}
Update a Global Context (Studio) document’s content and/or status.
Read-side counterpart already exists (GET /global-context/documents);
this closes the long-standing “read but can’t update” gap for the Context
bucket. Each save creates a DocumentVersion snapshot, identical to the
internal Studio editor — so version history stays consistent regardless of
whether the edit came from the UI, the developer API, or MCP.
Partial update: send content, status, or both. Returns 400 if
neither is provided, 404 if the document does not exist in this org.
Note: the Intelligence bucket (cb_intelligence_data) is intentionally
read-only — it is machine-generated and has no manual-edit path.
Authorizations
Parameters
Path Parameters
Global context document ID (UUID)
Global context document ID (UUID)
Header Parameters
Request Body required
Responses
200
Successful Response
object
object
422
Validation Error