Update organization context
const url = 'https://api.varman.io/v1/context/ctx_abc123def456';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"tags":["authentication","security","api","sessions","updated"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/context/ctx_abc123def456 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "tags": [ "authentication", "security", "api", "sessions", "updated" ] }'Update an organization context entry so approved business details stay current for evidence and questionnaire automation.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
ctx_abc123def456Context entry ID
Request Bodyrequired
Section titled “Request Bodyrequired”Partial context entry data to update
object
The question or topic this context entry addresses
The answer or detailed explanation for the question
Tags to categorize and help search this context entry
Org profile section the entry belongs to, for example Company, Team or Technology. Omit for general entries.
Answered (default), unsure when the team does not understand the question (owners and admins are emailed), or skipped. The answer may be empty unless answered.
Examples
{ "tags": [ "authentication", "security", "api", "sessions", "updated" ]}{ "answer": "Updated: We use a hybrid authentication system supporting both API keys and session-based authentication. Recent updates include support for OAuth2 providers."}Responses
Section titled “Responses”Context entry updated successfully
Example
{ "id": "ctx_abc123def456", "organizationId": "org_xyz789uvw012", "question": "How do we handle user authentication in our application?", "answer": "Updated: We use a hybrid authentication system supporting both API keys and session-based authentication with OAuth2 support.", "tags": [ "authentication", "security", "api", "sessions", "oauth2" ], "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-15T15:45:00.000Z", "authType": "apikey"}Bad request - Invalid input data
Example
{ "message": [ "tags must be an array of strings" ], "error": "Bad Request", "statusCode": 400}Unauthorized - Invalid or missing authentication
Example
{ "message": "Unauthorized", "statusCode": 401}Context entry not found
Example
{ "message": "Context entry with ID ctx_abc123def456 not found in organization org_xyz789uvw012", "statusCode": 404}Internal server error
Example
{ "message": "Internal server error", "statusCode": 500}