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>"
}
]
}
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>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful response
The response is of type object
.