UserInputAnswerParams
userInput/answer params: answer every question.
Each answer carries questionId then exactly one of selectedLabel
(single mode), selectedLabels (multiple mode, within min/max bounds), or
freeText (<=500 chars); plus an optional note (<=500). Answers that do
not match the prompt fail -32057 userInputAnswerInvalid. Image
attachments are a reserved field in v1, rejected if sent, because
the blob-upload path they reference is reserved.
Fields and variants
Section titled “Fields and variants”answerscommandIdsessionIduserInputId
Source
schema/msp/experimental/msp.schema.json#/types/UserInputAnswerParams
{ "description": "`userInput/answer` params: answer every question.\n\nEach answer carries `questionId` then exactly one of `selectedLabel`\n(single mode), `selectedLabels` (multiple mode, within min/max bounds), or\n`freeText` (<=500 chars); plus an optional `note` (<=500). Answers that do\nnot match the prompt fail -32057 `userInputAnswerInvalid`. Image\n`attachments` are a **reserved** field in v1, rejected if sent, because\nthe blob-upload path they reference is reserved.", "properties": { "answers": { "description": "One entry per question.", "items": { "$ref": "#/$defs/UserInputAnswer" }, "type": "array" }, "commandId": { "description": "The idempotency handle (UUIDv7).", "type": "string" }, "sessionId": { "description": "The target session.", "type": "string" }, "userInputId": { "description": "The prompt being answered.", "type": "string" } }, "required": [ "answers", "commandId", "sessionId", "userInputId" ], "type": "object"}