{
"data": {
"type": "Content",
"attributes": {
"title": "string",
"attr": {
"property1": "string",
"property2": "string"
},
"description": "string",
"shortDescription": "string",
"type": "audio",
"isLibraryItem": true
},
"relationships": {
"attachment": {
"data": {
"id": "FID001",
"type": "File"
}
},
"embedData": {
"data": {
"id": "FID001",
"type": "ContentEmbedDatum"
}
}
}
}
}curl --location --request POST 'https://api.synap.ac/v3/contents' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "Content",
"attributes": {
"title": "string",
"attr": {
"property1": "string",
"property2": "string"
},
"description": "string",
"shortDescription": "string",
"type": "audio",
"isLibraryItem": true
},
"relationships": {
"attachment": {
"data": {
"id": "FID001",
"type": "File"
}
},
"embedData": {
"data": {
"id": "FID001",
"type": "ContentEmbedDatum"
}
}
}
}
}'{
"data": {
"id": "FID001",
"type": "Content",
"attributes": {
"createdAt": "string",
"updatedAt": "string",
"title": "string",
"attr": {
"property1": "string",
"property2": "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"
}
},
"collaboratingUsers": {
"data": [
{
"id": "FID001",
"type": "User"
}
]
},
"collaboratingUserGroups": {
"data": [
{
"id": "FID001",
"type": "UserGroup"
}
]
}
}
}
}