Update CollectionSubFolder
Request
Body Params application/vnd.api+json
{
"data": {
"id": "FID001",
"type": "CollectionSubFolder",
"attributes": {
"name": "string"
},
"relationships": {
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
},
"items": {
"data": [
{
"id": "FID001",
"type": "CollectionItem"
}
]
}
}
}
}
Request Code Samples
curl --location --request PATCH 'https://api.synap.ac/v3/collection-folders//relationships/items/' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"id": "FID001",
"type": "CollectionSubFolder",
"attributes": {
"name": "string"
},
"relationships": {
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
},
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
},
"items": {
"data": [
{
"id": "FID001",
"type": "CollectionItem"
}
]
}
}
}
}'
Responses
{
"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"
}
]
}
}
}
}
Modified at 2025-09-15 09:58:55