{
"namespace": "default",
"opts": [
{
"targetType": "USER",
"targetIdentifiers": ["61e7bd4e7e7984abf625b28c"],
"resources": [
{
"code": "order",
"actions": ["book:*"],
"resourceType": "DATA"
}
]
}
]
}
curl --location --request POST 'https://core.authing.cn/api/v2/acl/authorize-resources' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 59f86b4832eb28071bdd9214' \
--header 'Content-Type: application/json' \
--data-raw '{
"namespace": "default",
"opts": [
{
"targetType": "USER",
"targetIdentifiers": ["61e7bd4e7e7984abf625b28c"],
"resources": [
{
"code": "order",
"actions": ["book:*"],
"resourceType": "DATA"
}
]
}
]
}'
{
"code": 200,
"message": "授权资源成功"
}