curl --request POST \
--url https://app.enzo.health/api/v1/notes/{voiceNoteId}/survey \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"templateType": "oasis"
}
'{
"questions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
],
"followUpQuestions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
]
}
]
}
],
"answers": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"surveyId": "<string>",
"questionId": "<string>",
"answerType": "singleChoice",
"value": "<unknown>"
}
],
"unansweredQuestionId": "<string>"
}curl --request POST \
--url https://app.enzo.health/api/v1/notes/{voiceNoteId}/survey \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"templateType": "oasis"
}
'{
"questions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
],
"followUpQuestions": [
{
"id": "<string>",
"instructions": "<string>",
"order": 123,
"answerType": "singleChoice",
"options": [
{
"value": "<string>",
"id": "<string>"
}
],
"triggerOptionIds": [
"<string>"
]
}
]
}
],
"answers": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"surveyId": "<string>",
"questionId": "<string>",
"answerType": "singleChoice",
"value": "<unknown>"
}
],
"unansweredQuestionId": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
oasis, soap, narrative, custom Successful response
Show child attributes
singleChoice Show child attributes
singleChoice