Skip to main content
GET
/
resources
/
{resource_id}
/
scoped-role-permissions
cURL
curl --request GET \
  --url https://api.opal.dev/v1/resources/{resource_id}/scoped-role-permissions \
  --header 'Authorization: Bearer <token>'
{
  "permissions": [
    {
      "target_ids": [
        "a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1",
        "8294e9c9-deb6-48e9-9c99-da2a1e04a87f"
      ],
      "target_type": "RESOURCE",
      "permission_name": "READ"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resource_id
string<uuid>
required

The ID of the resource whose scoped role permissions belong to.

Response

200 - application/json

The role permissions that this Opal Scoped Role has.

permissions
object[]
required