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]
optional

Name of the role.

Validations:

  • Must be a String

role[role_matrix]
optional

Capabilities of the role.

Validations:

  • Must be a Hash