GTM Context

Update Global Context Document

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.

patch/global-context/documents/{doc_id}

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/global-context/documents/{doc_id}
  • Auth: HTTP bearer

Path parameters

doc_idstring required

Global context document ID (UUID)

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Request body

contentstring nullable

New document body. Stored at meta_data.content. Omit to leave unchanged.

statusstring nullable

New document status (e.g. 'completed', 'draft'). Omit to leave unchanged.

Response

Successful Response

dataobject required

Changes

No recorded changes to this operation across all 2 revisions of this API.