Update a knowledge base item
/api/v1/knowledge_base_items/{id}Approving and unapproving are ordinary field updates — PATCH the
aasm_state. Values outside the user-selectable set are ignored.
Authorizations
Section titled “Authorizations”Path Parameters
Section titled “Path Parameters”The record’s prefixed ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Approve/unapprove; ignored unless user-selectable
Numeric ID of a category (see category.id on the item)
The integer index (0, 1, 2) is also accepted
Responses
Section titled “Responses”200
The updated item
The updated item
object
The item’s page in the web app
Lifecycle state. approved items are used to answer questionnaires.
Whether the question applies to your organisation
Whether the AI may answer or re-answer this item
0–1, encoded as a decimal string
The confidence rating flagged points a human should review
object
Numeric category ID, as accepted by category_id
403
Insufficient scope, role, or credits
Insufficient scope, role, or credits
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation
404
No such record in this account
No such record in this account
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation
422
The record could not be saved
The record could not be saved
object
object
A stable machine-readable code
Present on validation errors; one entry per failed validation