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

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
namespaceobject
oldNamestring

Old name if we are renaming the namespace

schemaNamestring

optional upgrade to the schema name

curl -X POST "https://api.descope.com/v1/mgmt/authz/ns/save" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "namespace": {
      "name": "string",
      "relationDefinitions": [
        {
          "name": "string",
          "complexDefinition": {
            "nType": "string",
            "children": [
              {}
            ],
            "expression": {
              "neType": "string",
              "relationDefinition": "string",
              "relationDefinitionNamespace": "string",
              "targetRelationDefinition": "string",
              "targetRelationDefinitionNamespace": "string"
            }
          }
        }
      ]
    },
    "oldName": "string",
    "schemaName": "string"
  }'

OK

{}

Was this helpful?