API Reference/Management/Roles
POST
/v1/mgmt/role/update

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
namestring
newNamestring
descriptionstring
permissionNamesarray<string>
tenantIdstring
curl -X POST "https://api.descope.com/v1/mgmt/role/update" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "newName": "string",
    "description": "string",
    "permissionNames": [
      "string"
    ],
    "tenantId": "string"
  }'

OK

{
  "name": "string",
  "description": "string",
  "permissionNames": [
    "string"
  ],
  "createdTime": 0,
  "tenantId": "string"
}

Was this helpful?