Authentication > Roles > rolesCreate
POST:roles.json
Description
Create one or multiple roles.
You cannot give more permissions to roles than you currently have.
Permission bit: "roles.create"
Topic: Roles
Arguments
data: [RoleCreate!]!
Main argument for mutations.
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
The name of the role
Example: "Administrator"
Valid when: name is not empty
Valid when: name's length doesn't exceed 250 characters
A set of permission bits describing this role
Result
[Role!]
Preview (typescript)
Loading module