Get event survey responses
Get an event survey responses
Path Parameters
companyID companyID required
The id of the company
eventID eventID required
The id of the event
type type required
Possible values: [pre
, post
]
The type of the survey
Responses
- 200
- 400
- 404
List of survey responses
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
- Array [
- Array [
- ]
- ]
surveyTemplateID string
Unique ID of the survey template
surveyTitle string
Title of the survey
anonymous boolean
Whether the survey is anonymous
questions object[]
List of elements in the survey template
type string
Possible values: [text
, radio
, select
, dateRange
]
Type of the survey element
label string
Label of the survey element
helperText string nullable
Helper text of the survey element
required boolean
Whether a response is required
responses object[]
List of survey responses
id string nullable
Unique ID of the user (if survey is not anonymous)
responses object[]
List of the user responses
oneOf
MOD1
MOD2
string
boolean
{
"surveyTemplateID": "2e8f9915-fda0-450c-95a3-d61f93c66fa9",
"surveyTitle": "How was the event?",
"anonymous": true,
"questions": [
{
"type": "text",
"label": "What's your favorite color?",
"helperText": "Choose one of the colors",
"required": true
}
],
"responses": [
{
"id": "2e8f9915-fda0-450c-95a3-d61f93c66fa9",
"responses": [
"string",
true
]
}
]
}
An error when a parameter is missing
application/json
Schema
Example (from schema)
Schema
message string
Error message
{
"message": "User not found"
}
An error when the event or survey is not found
application/json
Schema
Example (from schema)
Schema
message string
Error message
{
"message": "User not found"
}
Loading...