Skip to main content
POST
/
runs
/
{id}
/
questions
/
{qid}
/
answer
Submit Run Answer
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."
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT bearer token issued by fabro-web. See the Authentication guide for details.

Path Parameters

id
string
required

Unique run identifier (ULID).

qid
string
required

Unique identifier of a pending question.

Body

application/json

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.

value
string

Freeform answer text.

Example:

"Yes, proceed with the changes."

selected_option_key
string

Key of the selected option (for single-select multiple-choice questions).

Example:

"option_a"

selected_option_keys
string[]

Keys of selected options (for multi-select questions).

Example:
["option_a", "option_b"]

Response

Answer accepted