{
"data": {
"type": "AccessPolicy",
"attributes": {
"target": "string",
"subTarget": "string",
"action": "string",
"effect": "allow",
"targetCondition": {
"field": "string",
"operation": "$eq",
"value": "string"
}
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"associations": {
"data": [
{
"id": "FID001",
"type": "AccessPolicy"
}
]
},
"targetResources": [
{
"id": "string",
"type": "TargetResource",
"attributes": {
"title": "string",
"type": "string"
}
}
]
}
}
}
curl --location --request POST 'https://api.synap.ac/v3/access-policies' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "AccessPolicy",
"attributes": {
"target": "string",
"subTarget": "string",
"action": "string",
"effect": "allow",
"targetCondition": {
"field": "string",
"operation": "$eq",
"value": "string"
}
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"associations": {
"data": [
{
"id": "FID001",
"type": "AccessPolicy"
}
]
},
"targetResources": [
{
"id": "string",
"type": "TargetResource",
"attributes": {
"title": "string",
"type": "string"
}
}
]
}
}
}'
{
"data": {
"id": "FID001",
"type": "AccessPolicy",
"attributes": {
"target": "string",
"targetLabel": "string",
"subTarget": "string",
"action": "string",
"actionLabel": "string",
"effect": "allow",
"position": 0,
"inherited": true,
"isSpecific": true,
"isCore": true,
"targetCondition": {
"field": "string",
"operation": "$eq",
"value": "string"
}
},
"relationships": {
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"associations": {
"data": [
{
"id": "FID001",
"type": "AccessPolicy"
}
]
},
"targetResources": [
{
"id": "string",
"type": "TargetResource",
"attributes": {
"title": "string",
"type": "string"
}
}
]
}
}
}