Submit a survey
POST/:customer_id/users/:uid/surveys/:survey_id
Submit the results of a survey
Request
Path Parameters
customer_id Customer Idrequired
Id of the tenant
uid uuidrequired
Id of the user
survey_id Survey Idrequired
- application/json
Body
required
- MOD1
- MOD2
answers objectrequired
property name* SurveyAnswer
numeric_answer object nullable
Answer value when the question was of numeric type
anyOf
integer
number
text_answer Text Answernullable
Answer value when the question was of text type
answer_id Answer Idnullable
Answer value when the question was of single_choice or single_choice_with_other type
answer_ids string[]nullable
Answer ids value when the question was of multiple_choice or multiple_choice_with_other type
other_answer Other Answernullable
Answer value when the question was of single_choice_with_other or multiple_choice_with_other type and the answer was other
completed_at date-timerequired
Responses
- 200
- 400
- application/json
- Schema
- Example (from schema)
Schema
submission_id Submission Idrequired
{
"submission_id": "string"
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
message Messagerequired
errors undefined[]nullablerequired
{
"message": "string",
"errors": [
null
]
}
Loading...