cURL
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 }
Creates a new role for access control
Documentation IndexFetch the complete documentation index at: https://docs.databunker.org/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.databunker.org/llms.txt
Use this file to discover all available pages before exploring further.
API token for authentication
Name of the role
Description of the role
Additional metadata for the request
Role created successfully
"ok"
ID of the created role