API Reference/Management/Authz
POST
/v1/mgmt/authz/re/create

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
relationsarray<object>
curl -X POST "https://api.descope.com/v1/mgmt/authz/re/create" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "relations": [
      {
        "resource": "string",
        "relationDefinition": "string",
        "namespace": "string",
        "target": "string",
        "targetNamespace": "string",
        "targetSetResource": "string",
        "targetSetRelationDefinition": "string",
        "targetSetRelationDefinitionNamespace": "string",
        "query": {
          "tenants": [
            "string"
          ],
          "roles": [
            "string"
          ],
          "text": "string",
          "statuses": [
            "string"
          ],
          "ssoOnly": false,
          "withTestUser": true,
          "customAttributes": {}
        }
      }
    ]
  }'

OK

{}

Was this helpful?