> ## Documentation Index
> Fetch the complete documentation index at: https://docs.populardemand.market/llms.txt
> Use this file to discover all available pages before exploring further.

# answer_question

> Answer a question

Answer a question on a Request, including still\_want (yes or pause).

## Access

| Property | Value |
| - | - |
| OAuth scope | `purchases:write` |
| Effect | `reversible` |
| `readOnlyHint` | No |
| `destructiveHint` | Yes |
| `idempotentHint` | Yes |
| `openWorldHint` | No |

The buyer also approves each permission on the consent page. See [Authentication](https://docs.populardemand.market/authentication.md).

## Arguments

| Field | Type | Required | Description |
| - | - | - | - |
| `request_id` | string (uuid) | Yes | The Request’s id from list\_requests. |
| `question_id` | `"still_want"` or string | Yes | The question’s id from get\_request, or still\_want. |
| `answer` | object | Yes | choice: one of the question’s choices (yes or pause for still\_want). text: the number (money\_minor: cents for USD). null: the person doesn’t know. |
| `answer.choice` | string or null | No | |
| `answer.text` | string or null | No | |
| `request_key` | string | No | Optional. The same key repeats a change safely; one is derived when left out. |

> [accordion] Input JSON Schema
>
> ```json theme={null}
> {
>   "type": "object",
>   "properties": {
>     "request_id": {
>       "type": "string",
>       "format": "uuid",
>       "description": "The Request’s id from list_requests."
>     },
>     "question_id": {
>       "anyOf": [
>         {
>           "type": "string",
>           "const": "still_want"
>         },
>         {
>           "type": "string",
>           "pattern": "^[0-9a-f-]{36}(:[a-z][a-z0-9_]{0,39})?$"
>         }
>       ],
>       "description": "The question’s id from get_request, or still_want."
>     },
>     "answer": {
>       "type": "object",
>       "properties": {
>         "choice": {
>           "anyOf": [
>             {
>               "type": "string",
>               "minLength": 1,
>               "maxLength": 80
>             },
>             {
>               "type": "null"
>             }
>           ]
>         },
>         "text": {
>           "anyOf": [
>             {
>               "type": "string",
>               "minLength": 1,
>               "maxLength": 80
>             },
>             {
>               "type": "null"
>             }
>           ]
>         }
>       },
>       "additionalProperties": false,
>       "description": "choice: one of the question’s choices (yes or pause for still_want). text: the number (money_minor: cents for USD). null: the person doesn’t know."
>     },
>     "request_key": {
>       "description": "Optional. The same key repeats a change safely; one is derived when left out.",
>       "type": "string",
>       "minLength": 8,
>       "maxLength": 64
>     }
>   },
>   "required": [
>     "request_id",
>     "question_id",
>     "answer"
>   ],
>   "additionalProperties": false
> }
> ```

> [accordion] Output JSON Schema
>
> ```json theme={null}
> {
>   "type": "object",
>   "properties": {
>     "result": {
>       "type": "object",
>       "properties": {
>         "request_id": {
>           "type": "string"
>         },
>         "question_id": {
>           "type": "string"
>         },
>         "recorded": {
>           "type": "boolean"
>         },
>         "effect": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "next_step": {
>           "type": [
>             "string",
>             "null"
>           ]
>         }
>       },
>       "required": [
>         "request_id",
>         "question_id",
>         "recorded",
>         "effect",
>         "next_step"
>       ],
>       "additionalProperties": {}
>     }
>   },
>   "required": [
>     "result"
>   ],
>   "additionalProperties": false
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.