Skip to main content
POST
/
v2
/
RoleUpdate
Update role
curl --request POST \
  --url http://localhost:3000/v2/RoleUpdate \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "roleid": 123,
  "rolename": "<string>",
  "roledesc": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
roleid
integer
required

ID of the role to update

rolename
string

New name of the role

roledesc
string

New description of the role

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Role updated successfully

status
string
Example:

"ok"