Request
Body Params application/vnd.api+json
{
"data": {
"type": "StudyItem",
"attributes": {},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"quiz": {
"data": {
"id": "FID001",
"type": "Quiz"
}
},
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"study": {
"data": {
"id": "FID001",
"type": "Study"
}
}
}
}
}
Request samples
curl --location --request POST 'https://api.synap.ac/v3/study-items' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "StudyItem",
"attributes": {},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"quiz": {
"data": {
"id": "FID001",
"type": "Quiz"
}
},
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"study": {
"data": {
"id": "FID001",
"type": "Study"
}
}
}
}
}'
Responses
The primary key for each resource.
{
"data": {
"id": "FID001",
"type": "StudyItem",
"attributes": {},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"quiz": {
"data": {
"id": "FID001",
"type": "Quiz"
}
},
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"study": {
"data": {
"id": "FID001",
"type": "Study"
}
}
}
}
}
Modified at 2025-07-08 10:51:22