Context

Update context entry

Partially updates a context entry. Only provided fields will be updated. Supports both API key authentication (X-API-Key header) and session authentication (cookies + X-Organization-Id header).

patch/v1/context/{id}

Path parameters

idstring required
Example:ctx_abc123def456

Context entry ID

Headers

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Request body

questionstring

The question or topic this context entry addresses

answerstring

The answer or detailed explanation for the question

tagsstring[]

Tags to categorize and help search this context entry

Example request

{
  "question": "How do we handle user authentication in our application?",
  "answer": "We use a hybrid authentication system supporting both API keys and session-based authentication. API keys are used for programmatic access while sessions are used for web interface interactions.",
  "tags": [
    "authentication",
    "security",
    "api",
    "sessions"
  ]
}

Response

Context entry updated successfully

Changes