Skip to content

Patch Role API
Stable

Request

API to update role details

Security
apiKey
Path
role_idstring, (uuid)required

Role ID

Bodyapplication/jsonrequired
namestring
descriptionstring
cURL
curl -i -X PATCH \
  'https://develop-api.esper.io/_mock/openapi/authz2/v1/roles/{role_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "description": "string"
  }'

Responses

Request Succeded

Bodyapplication/json
idstring
namestring
descriptionstring
role_typeinteger
Response
{ "id": "string", "name": "string", "description": "string", "role_type": 0 }