Skip to main content

Create a New Role

POST 

/user-svc/role

Create a new role. The role ID must be prefixed by the caller's slug. Eg. if the caller's slug is petstore-svc the role should look like petstore-svc:admin. The user account who creates the role will become the owner of that role, and only the owner will be able to edit the role.

Requires the user-svc:role:create permission.

Request

Responses

Role created successfully