POST
/v1/mgmt/authz/re/has

Check to see if a list of relations exist

Takes a list of relations and checks which exist.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/authz/re/has

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

relationQueriesarray<object>

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/authz/re/has" \
  -d '{
  "relationQueries": [
    {
      "resource": "string",
      "relationDefinition": "string",
      "namespace": "string",
      "target": "string",
      "hasRelation": true
    }
  ]
}'

{
  "relationQueries": [
    {
      "resource": "string",
      "relationDefinition": "string",
      "namespace": "string",
      "target": "string",
      "hasRelation": true
    }
  ]
}

Was this helpful?