Request
The primary key for each resource.
Body Params application/vnd.api+json
The primary key for each resource.
{
"data": {
"id": "FID001",
"type": "Content",
"attributes": {
"title": "string",
"description": "string",
"shortDescription": "string"
},
"relationships": {
"attachment": {
"data": {
"id": "FID001",
"type": "File"
}
},
"embedData": {
"data": {
"id": "FID001",
"type": "ContentEmbedDatum"
}
}
}
}
}
Request samples
curl --location --request PATCH 'https://api.synap.ac/v3/contents/' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"id": "FID001",
"type": "Content",
"attributes": {
"title": "string",
"description": "string",
"shortDescription": "string"
},
"relationships": {
"attachment": {
"data": {
"id": "FID001",
"type": "File"
}
},
"embedData": {
"data": {
"id": "FID001",
"type": "ContentEmbedDatum"
}
}
}
}
}'
Responses
The primary key for each resource.
{
"data": {
"id": "FID001",
"type": "Content",
"attributes": {
"createdAt": "string",
"updatedAt": "string",
"title": "string",
"description": "string",
"shortDescription": "string",
"type": "audio",
"attachmentMimeType": "string",
"isLibraryItem": true
},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"subPortal": {
"data": {
"id": "FID001",
"type": "SubPortal"
}
},
"attachment": {
"data": {
"id": "FID001",
"type": "File"
}
},
"embedData": {
"data": {
"id": "FID001",
"type": "ContentEmbedDatum"
}
}
}
}
}
Modified at 2025-07-08 10:51:21