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

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
targetsarray<string>
curl -X POST "https://api.descope.com/v1/mgmt/authz/re/targets" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "targets": [
      "string"
    ]
  }'

OK

{
  "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": {}
      }
    }
  ]
}

Was this helpful?