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

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
rolename
string
required

Name of the role

roledesc
string

Description of the role

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Role created successfully

status
string
Example:

"ok"

roleid
integer

ID of the created role