Skip to content

Update organization context

PATCH
/v1/context/{id}
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.

id
required
string

Example

ctx_abc123def456

Context entry ID

Partial context entry data to update

Media typeapplication/json
object
question

The question or topic this context entry addresses

string
answer

The answer or detailed explanation for the question

string
tags

Tags to categorize and help search this context entry

Array<string>
section

Org profile section the entry belongs to, for example Company, Team or Technology. Omit for general entries.

string
status

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.

string
Allowed values: answered unsure skipped

Examples

{
"tags": [
"authentication",
"security",
"api",
"sessions",
"updated"
]
}

Context entry updated successfully

Media typeapplication/json

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

Media typeapplication/json

Example

{
"message": [
"tags must be an array of strings"
],
"error": "Bad Request",
"statusCode": 400
}

Unauthorized - Invalid or missing authentication

Media typeapplication/json

Example

{
"message": "Unauthorized",
"statusCode": 401
}

Context entry not found

Media typeapplication/json

Example

{
"message": "Context entry with ID ctx_abc123def456 not found in organization org_xyz789uvw012",
"statusCode": 404
}

Internal server error

Media typeapplication/json

Example

{
"message": "Internal server error",
"statusCode": 500
}