{
"data": {
"id": "FID001",
"type": "Assignment",
"attributes": {
"name": "string",
"description": "string",
"shortDescription": "string",
"status": "Not started"
},
"relationships": {}
}
}
curl --location --request PATCH 'https://api.synap.ac/v3/assignments/' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"id": "FID001",
"type": "Assignment",
"attributes": {
"name": "string",
"description": "string",
"shortDescription": "string",
"status": "Not started"
},
"relationships": {}
}
}'
{
"data": {
"id": "FID001",
"type": "Assignment",
"attributes": {
"createdAt": "string",
"name": "string",
"description": "string",
"shortDescription": "string",
"image": {
"url": "string"
},
"deadline": "string",
"status": "Not started",
"progress": 0,
"startDate": "string",
"endDate": "string",
"setDate": "string",
"timeSpentInMinutes": 0,
"totalItems": 0,
"itemsCompleted": 0,
"attemptNumber": 0
},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"course": {
"data": {
"id": "FID001",
"type": "Course"
}
},
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
},
"items": {
"data": [
{
"id": "FID001",
"type": "AssignmentItemAudio"
}
]
},
"folders": {
"data": [
{
"id": "FID001",
"type": "AssignmentFolder"
}
]
},
"certificate": {
"data": {
"id": "FID001",
"type": "Certificate"
}
},
"certificateFile": {
"data": {
"id": "FID001",
"type": "File"
}
}
}
}
}