POST
/v1/mgmt/authz/schema/save

Save a schema

Save (create or update) 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/save

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

schemaobject

upgradeboolean

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/authz/schema/save" \
  -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"
  },
  "upgrade": true
}'

{}

Was this helpful?