Skip to content

Answer a session's blocked prompt (its own menu), through Fleetlayer

The OpenAPI spec (JSON)Licence, versions and sign-in

POST
/api/v1/sessions/answer
curl --request POST \
--url https://deck.example.com/api/v1/sessions/answer \
--header 'Content-Type: application/json' \
--cookie qd_auth=<qd_auth> \
--data '{ "answers": [ { "pick": 1 } ], "prompt": "example", "session": "example" }'

The person’s answer to a blocked prompt, from the Work tab.

Media typeapplication/json

The person’s answer to a blocked prompt, from the Work tab.

object
answers
required

One per question, in order; one for a permission or plan prompt.

Array
>= 1 items <= 20 items

One question’s answer: an option, several (a multiple-choice question), or free text.

Any of:
object
pick
required
integer format: uint32
prompt
required

The prompt’s ID, so an answer to a prompt that’s gone is refused rather than typed into the next one.

string
>= 1 characters <= 300 characters
session
required

The session: <session ID>@<node>, as the deck names it.

string
>= 1 characters <= 300 characters

Example generated

{
"answers": [
{
"pick": 1
}
],
"prompt": "example",
"session": "example"
}
Media typeapplication/json

Example generated

example

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}