Answer a session's blocked prompt (its own menu), through Fleetlayer
POST
/api/v1/sessions/answer
const url = 'https://deck.example.com/api/v1/sessions/answer';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"answers":[{"pick":1}],"prompt":"example","session":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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
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
session
required
The session: <session ID>@<node>, as the deck names it.
string
Example generated
{ "answers": [ { "pick": 1 } ], "prompt": "example", "session": "example"}Responses
Section titled “Responses”Media typeapplication/json
Example generated
exampledefault
Section titled “default”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"}