Request
Body Params application/vnd.api+json
{
"data": {
"type": "Flag",
"attributes": {
"comment": "string",
"source": "string",
"issue": "string"
},
"relationships": {
"planter": {
"data": {
"id": "FID001",
"type": "User"
}
},
"question": {
"data": {
"id": "FID001",
"type": "QuizQuestion"
}
},
"portal": {
"data": {
"id": "FID001",
"type": "Portal"
}
}
}
}
}
Request samples
curl --location --request POST 'https://api.synap.ac/v3/flags' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "Flag",
"attributes": {
"comment": "string",
"source": "string",
"issue": "string"
},
"relationships": {
"planter": {
"data": {
"id": "FID001",
"type": "User"
}
},
"question": {
"data": {
"id": "FID001",
"type": "QuizQuestion"
}
},
"portal": {
"data": {
"id": "FID001",
"type": "Portal"
}
}
}
}
}'
Responses
The primary key for each resource.
{
"data": {
"id": "FID001",
"type": "Flag",
"attributes": {
"createdAt": "string",
"updatedAt": "string",
"comment": "string",
"source": "string",
"issue": "string",
"isReviewed": true
},
"relationships": {
"planter": {
"data": {
"id": "FID001",
"type": "User"
}
},
"question": {
"data": {
"id": "FID001",
"type": "QuizQuestion"
}
},
"portal": {
"data": {
"id": "FID001",
"type": "Portal"
}
}
}
}
}
Modified at 2025-07-08 10:51:22