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

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
relationDefinitionobject
namespacestring
oldNamestring

Old name if we are renaming the relation definition

schemaNamestring

optional upgrade to the schema name

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

OK

{}

Was this helpful?