Update an existing role

Modify the properties of an existing role by providing its unique ID and updated details.

PATCH
/organizations/{organizationId}/roles/{roleId}
AuthorizationBearer <token>

In: header

Path Parameters

organizationId*string

Unique identifier of the organization

roleId*string

Unique identifier of the organization role

Request Body

application/json

The updated details for the role.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://api-testnet.dual.network/organizations/string/roles/string" \  -H "Content-Type: application/json" \  -d '{    "permissions": [      {        "resource": "api-keys",        "crud": {          "read": true,          "create": true,          "update": true,          "delete": true        }      }    ]  }'
{}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}