Skip to content

Answer Open Question

POST /open-questions/{item_id}/answer

The question is a knowledge_item, so the path parameter is item_id.

It reads as a detail and it is the contract: the operation id names a generated SDK method and the path names its argument, and both are frozen (D-053).

NameInTypeNotes
item_idpathstring (uuid)required—
FieldTypeNotes
contentstringrequiredmin length 1 max length 8000
audiencestringoptionalDefault "kb".
knowledge_setstring (uuid) | nulloptional—
StatusDescriptionBody
200Successful ResponseOpenQuestionView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/open-questions/{item_id}/answer \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"content": "string"
}'
FieldTypeNotes
idstring (uuid)required—
questionstringrequired—
askedintegerrequired—
contextsstring[]optional—
closablebooleanoptionalDefault false.
nearest_similaritynumberoptionalDefault 0.0.
answered_bystring (uuid) | nulloptional—