API Reference / Knowledge - Decisions

Update a decision

patch https://api.intelig.ai/api/v1/intelig/knowledge/decisions/{id}

Auth: Authorization: ApiKey <key> (an API key sent as Bearer is rejected) or Authorization: Bearer <jwt> for a dashboard session. operationId: updateDecision

Partially updates a decision's content and/or context. At least one field must be provided.

Example request

curl -X PATCH "https://api.intelig.ai/api/v1/intelig/knowledge/decisions/1" \
  -H "Authorization: ApiKey $INTELIG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Keep native extraction; do not adopt a third-party memory layer",
    "context": "Blind benchmark scored native extraction roughly 2x the alternative",
    "initiativeId": 57
  }'

Path parameters

NameTypeRequiredDescription
id integer (int64) yes

Request body

application/json

FieldTypeRequiredDescription
content string no What was decided. Example: Keep native extraction; do not adopt a third-party memory layer
context string no Why it was decided — the reasoning a reader would need a year from now. Example: Blind benchmark scored native extraction roughly 2x the alternative
initiativeId integer (int64) no Initiative to link. Send -1 to unlink. Example: 57

Response 200

application/json · ApiResponseDecisionDto

FieldTypeDescription
success boolean
message string
data DecisionDto Extracted decision details

Status codes

  • 200 — Decision updated successfully
  • 400 — No updates provided in request body
  • 401 — Organization context not set
  • 403 — Insufficient permissions for Knowledge pillar
  • 404 — Decision not found
  • 429 — —

Every response is wrapped in { success, message, data }. A 4xx means the request is wrong — do not retry it unchanged. A 429 carries Retry-After in seconds.