Surveys

Get surveys

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
onlystringOptional

Data parameter determine which fields of the survey will be returned

Example: id,name
hydratestringOptional

Data parameter determine which relations of the survey will be returned

Example: translation
Responses
200

OK

application/json
get
/surveys
200

OK

Add a survey

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringOptional
descriptionstringOptional
base_languagestringOptional
colorstring · nullableOptional
require_approvalbooleanOptional
everyone_can_createbooleanOptional
translationsobjectOptional
Responses
post
/surveys

Get survey

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
hydratestringOptional

Data parameter determine which relations of the survey will be returned

Example: translations
onlystringOptional

Data parameter determine which fields of the survey will be returned

Example: id,name
Responses
200

OK

application/json
get
/surveys/100

Edit survey

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
statusintegerOptional
messagestringOptional
Responses
200

OK

application/json
put
/surveys/2

Delete survey

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
delete
/surveys/8