POST
/v1/mgmt/authz/ns/save

Create or update a namespace

Save (create or update) an authz namespace for your project.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/authz/ns/save

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

namespaceobject

oldNamestring

Old name if we are renaming the namespace

schemaNamestring

optional upgrade to the schema name

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

{}

Was this helpful?