PUT roles Id

PUT
/roles/{id}

Authorization

Bearer
headerAuthorizationBearer <token>

Paste your JWT token here

Path Parameters

id*integer

The unique identifier of the role to update.

Formatint32

Request Body

The data transfer object containing the full updated role information.

application/json
  1. body

Defines the DTO for updating an existing role, containing all necessary information for modifying a role's properties. The RoleUpdateDTO is used to transfer data from the client to the server when updating an existing role, allowing for changes to be made to the role's details while ensuring that the provided information is validated appropriately for the update process.

name*string

The name of the role.

Length0 <= length <= 100

Response Body

No Content

curl -X PUT 'https://example.com/roles/0' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Empty