Roles
Create custom role
Changed onCreate a custom role bundling a set of permissions at either account or project scope.
Get the list of valid permission strings from List Permissions.
post/api/v1/roles
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/roles
- AuthAPI key in header X-API-Key
Request body
Example request
{
"name": "Custom Operator",
"slug": "custom-operator",
"permissions": [
"vm.view",
"vm.create",
"volume.view"
]
}Response
Role created
Example response
{
"data": {
"name": "Operator",
"slug": "operator"
}
}Changes
- info
endpoint added
- info