Request
Body Params application/vnd.api+json
{
"data": {
"type": "SurveyPage",
"attributes": {
"title": "string",
"description": "string",
"primaryColor": "string",
"resultDescription": "string",
"headerImageUrl": "http://example.com"
},
"relationships": {
"survey": {
"data": {
"id": "FID001",
"type": "Survey"
}
}
}
}
}
Request samples
curl --location --request POST 'https://api.synap.ac/v3/survey-pages' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "SurveyPage",
"attributes": {
"title": "string",
"description": "string",
"primaryColor": "string",
"resultDescription": "string",
"headerImageUrl": "http://example.com"
},
"relationships": {
"survey": {
"data": {
"id": "FID001",
"type": "Survey"
}
}
}
}
}'
Responses
data
object (SurveyPage)Â
optionalThe primary key for each resource.
{
"data": {
"id": "FID001",
"type": "SurveyPage",
"attributes": {
"title": "string",
"description": "string",
"primaryColor": "string",
"resultDescription": "string",
"headerImageUrl": "http://example.com"
},
"relationships": {
"survey": {
"data": {
"id": "FID001",
"type": "Survey"
}
},
"items": {
"data": [
{
"id": "FID001",
"type": "SurveyItem"
}
]
}
}
}
}
Modified at 2025-07-08 10:51:21