POST
/v1/mgmt/authz/schema/load

Load an existing schema

Load an authz schema for your project.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/authz/schema/load

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/authz/schema/load" \
  -d '{}'

{
  "schema": {
    "namespaces": [
      {
        "name": "string",
        "relationDefinitions": [
          {
            "name": "string",
            "complexDefinition": {
              "nType": "string",
              "children": [
                {}
              ],
              "expression": {
                "neType": "string",
                "relationDefinition": "string",
                "relationDefinitionNamespace": "string",
                "targetRelationDefinition": "string",
                "targetRelationDefinitionNamespace": "string"
              }
            }
          }
        ]
      }
    ],
    "name": "string"
  }
}

Was this helpful?