POST
/
v1
/
notes
/
{voiceNoteId}
/
survey
/
submit
curl --request POST \
  --url https://app.enzo.health/api/v1/notes/{voiceNoteId}/survey/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "answers": [
    {
      "questionId": "<string>",
      "value": [
        "<string>"
      ]
    }
  ],
  "isCompleted": false
}'
{
  "success": true,
  "answers": [
    {
      "id": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "surveyId": "<string>",
      "questionId": "<string>",
      "answerType": "singleChoice",
      "value": "<any>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

voiceNoteId
string
required

Body

application/json
answers
object[]
required
isCompleted
boolean
default:false

Response

200
application/json
Successful response
success
boolean
required
answers
object[]
required