API Reference/Management/Authz
POST
/v1/mgmt/authz/schema/save

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
schemaobject
upgradeboolean
curl -X POST "https://api.descope.com/v1/mgmt/authz/schema/save" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -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
  }'

OK

{}

Was this helpful?