{
"data": {
"id": "FID001",
"type": "CourseItemUpload",
"attributes": {
"title": "string",
"description": "string",
"customLabel": "string",
"isReviewRequired": true,
"contentType": "audio"
},
"relationships": {
"folder": {
"data": {
"id": "FID001",
"type": "CourseFolder"
}
}
}
}
}
curl --location --request PATCH 'https://api.synap.ac/v3/course-item-upload/' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"id": "FID001",
"type": "CourseItemUpload",
"attributes": {
"title": "string",
"description": "string",
"customLabel": "string",
"isReviewRequired": true,
"contentType": "audio"
},
"relationships": {
"folder": {
"data": {
"id": "FID001",
"type": "CourseFolder"
}
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "CourseItemUpload",
"attributes": {
"title": "string",
"description": "string",
"customLabel": "string",
"type": "upload",
"isReviewRequired": true,
"contentType": "audio"
},
"relationships": {
"course": {
"data": {
"id": "FID001",
"type": "Course"
}
},
"folder": {
"data": {
"id": "FID001",
"type": "CourseFolder"
}
}
}
}
}