Metadata

- Authentication: The user must be authenticated to perform this action.
- Admin privileges: The user has to have administrative privileges to perform this
    action.

Params

Param name Description
role
optional , nil allowed

Validations:

  • Must be a Hash

role[name]
required

Name of the role.

Validations:

  • Must be a String

role[role_matrix]
required

Capabilities of the role.

Validations:

  • Must be a Hash