{
"data": {
"type": "CollectionAccess",
"attributes": {
"level": "editor",
"upgradeInstructionsType": "product",
"upgradeInstructionsData": [
"string"
]
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
}
}
}
}
curl --location --request POST 'https://api.synap.ac/v3/collection-accesses' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "CollectionAccess",
"attributes": {
"level": "editor",
"upgradeInstructionsType": "product",
"upgradeInstructionsData": [
"string"
]
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "CollectionAccess",
"attributes": {
"level": "editor",
"upgradeInstructionsType": "product",
"upgradeInstructionsData": [
"string"
]
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"collection": {
"data": {
"id": "FID001",
"type": "Collection"
}
}
}
}
}