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 (Bearer token or cookies).

patch/v1/context/{id}

Path parameters

idstring required
Example:ctx_abc123def456

Context entry ID

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