curl --request POST \
--url https://api.example.com/runs/{id}/questions/{qid}/answer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "Yes, proceed with the changes.",
"selected_option_key": "option_a",
"selected_option_keys": [
"option_a",
"option_b"
]
}
'{
"errors": [
{
"status": "404",
"title": "Not Found",
"detail": "Run not found."
}
]
}Submits an answer to a pending question. The answer can be freeform text or a selected option key, depending on the question type.
curl --request POST \
--url https://api.example.com/runs/{id}/questions/{qid}/answer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "Yes, proceed with the changes.",
"selected_option_key": "option_a",
"selected_option_keys": [
"option_a",
"option_b"
]
}
'{
"errors": [
{
"status": "404",
"title": "Not Found",
"detail": "Run not found."
}
]
}JWT bearer token issued by fabro-web. See the Authentication guide for details.
Unique run identifier (ULID).
Unique identifier of a pending question.
Request body for submitting an answer to a pending question. At least one of value, selected_option_key, or selected_option_keys must be provided.
Freeform answer text.
"Yes, proceed with the changes."
Key of the selected option (for single-select multiple-choice questions).
"option_a"
Keys of selected options (for multi-select questions).
["option_a", "option_b"]
Answer accepted