POST
/v1/mgmt/authz/rd/save

Create or update a relation definition

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

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/authz/rd/save

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

relationDefinitionobject

namespacestring

oldNamestring

Old name if we are renaming the relation definition

schemaNamestring

optional upgrade to the schema name

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

{}

Was this helpful?