{
"data": {
"type": "CollectionSubFolder",
"attributes": {
"name": "string"
},
"relationships": {
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
},
"items": {
"data": [
{
"id": "FID001",
"type": "CollectionItem"
}
]
}
}
}
}
curl --location --request POST 'https://api.synap.ac/v3/collection-folders//relationships/items' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "CollectionSubFolder",
"attributes": {
"name": "string"
},
"relationships": {
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
},
"items": {
"data": [
{
"id": "FID001",
"type": "CollectionItem"
}
]
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "CollectionSubFolder",
"attributes": {
"type": "sub-folder",
"name": "string"
},
"relationships": {
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
},
"items": {
"data": [
{
"id": "FID001",
"type": "CollectionItem"
}
]
}
}
}
}