Roles
Update an existing role
PUT
role_id*integerThe ID of a role.
Range
1 <= valueAccept*stringapplication/json
Content-Type*stringapplication/json
A JSON object containing the resource data
application/json- body
id*integerThe unique ID of the given Role.
name*stringThe role's name. Must be at least 2 characters. Must not be greater than 60 characters.
description?stringDescription of this role. Must not be greater than 255 characters.
permissions*RolePermissionsThe list of permissions granted for this role
No Content
curl -X PUT 'https://api.devopness.com/roles/123' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ -d '{ "id": 1, "name": "admin", "permissions": [ "application:read", "application:create", "server:read" ]}'Example Response
Empty