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"
}Updates an existing 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"
}API token for authentication
Role updated successfully
"ok"