Update an item
/api/v1/questionnaires/{questionnaire_id}/questionnaire_items/{id}aasm_state accepts only needs_input, auto_answered and
approved; any other value is dropped silently and the rest of the
update still applies. Supplying answer on an item with no answering
user records the caller as that user.
Authorizations
Section titled “Authorizations”Path Parameters
Section titled “Path Parameters”Example
qu_1a2bThe questionnaire’s prefixed ID
The record’s prefixed ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Other values are dropped silently
Responses
Section titled “Responses”200
The updated item
The updated item
object
Why the answer was given
Guidance text supplied with the question
Markdown explanation of the question; see explain_question
explanation rendered as HTML
For yes/no questions
0–1, encoded as a decimal string
Decimal string; 0 when there is no confidence
Answer formatted for pasting into a portal
Why the knowledge base was insufficient
1-based position in the questionnaire
A knowledge base item or source passage retrieved for an answer
object
Numeric database ID
Numeric database ID of the referenced record
Vector distance from the question
The passage quoted in the answer, when it was used
Present when reference_type is KnowledgeBaseItem
object
Present when reference_type is Embedding
object
The passage text
Page of the source document
Heading path to the section
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