{
"data": {
"type": "SurveyResponse",
"attributes": {
"responseData": {}
},
"relationships": {
"survey": {
"data": {
"id": "FID001",
"type": "Survey"
}
},
"assignmentItem": {
"data": {
"id": "FID001",
"type": "AssignmentItemSurvey"
}
}
}
}
}
curl --location --request POST 'https://api.synap.ac/v3/survey-responses' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "SurveyResponse",
"attributes": {
"responseData": {}
},
"relationships": {
"survey": {
"data": {
"id": "FID001",
"type": "Survey"
}
},
"assignmentItem": {
"data": {
"id": "FID001",
"type": "AssignmentItemSurvey"
}
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "SurveyResponse",
"attributes": {
"responseData": {}
},
"relationships": {
"survey": {
"data": {
"id": "FID001",
"type": "Survey"
}
},
"assignmentItem": {
"data": {
"id": "FID001",
"type": "AssignmentItemSurvey"
}
}
}
}
}