Answer an open question (a person at or above the question's floor)
const url = 'http://127.0.0.1:8080/v1/questions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/answer';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"option":1,"text":"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 http://127.0.0.1:8080/v1/questions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/answer \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "option": 1, "text": "example" }'A product question takes a requester or above, a technical one
an engineer or above. Give exactly one of option and text. The
answer passes the secret scan, is audited, and is never changed. The
asking session gets a question_answered notice. A question that
is no longer open gets 409.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "option": 1, "text": "example"}Responses
Section titled “Responses”The answered question.
object
Product: a gap in what to build, answered by a requester or above. technical: how to build it, answered by an engineer or above.
The agent’s words after the secret scan. This is the record.
What the recipient reads first. Never the record.
object
object
object
object
The chosen option, numbered from 1.
The free text, or the chosen option’s text.
The person’s answer a reused answer copies.
object
Example
{ "kind": "product", "status": "open", "phrased_for": "plain", "phrased_by": "template", "answer_floor": "viewer", "answer": { "source": "human" }}The request is malformed.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}No valid bearer token.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The token may not do this.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}No such resource in the caller’s org.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The request clashes with current state.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The request is well formed but breaks a rule or a limit.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}A rate limit or quota stopped the request. Retry-After gives seconds to wait.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}