resources
PUT /resources/{resource_id}/scoped-role-permissions
Changed onSets all the scoped role permissions on an OPAL_SCOPED_ROLE resource.
Request
- Base URLhttps://api.opal.dev/v1
- AuthHTTP bearer
Path parameters
resource_idstring uuid required
The ID of the resource whose scoped role permissions belong to. Must be of OPAL_SCOPED_ROLE resource type.
Request body
Example request
{
"permissions": [
{
"target_ids": [
"a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1",
"8294e9c9-deb6-48e9-9c99-da2a1e04a87f"
],
"target_type": "RESOURCE",
"permission_name": "READ"
}
]
}Response
The role permissions that this Opal Scoped Role has.
Example response
{
"permissions": [
{
"target_ids": [
"a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1",
"8294e9c9-deb6-48e9-9c99-da2a1e04a87f"
],
"target_type": "RESOURCE",
"permission_name": "READ"
}
]
}Changes
- warning
added the new
EVENTenum value to the//response property for the response status - info
added the new
EVENTenum value to the request property//
- warning