cURL
curl --request POST \ --url https://api.unkey.dev/v1/permissions.createRole \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "dns.records.manager", "description": "dns.records.manager can read and write dns records for our domains." }'
{ "roleId": "role_123" }
rbac.*.create_role
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Sucessfully created a role
The response is of type object.
object
Was this page helpful?