Authentication > Roles > rolesModify
POST:roles.json
Description
Modify one or multiple roles.
You cannot give more permissions to roles than you currently have.
Permission bit: "roles.modify"
Topic: Roles
Arguments
data: [RoleModify!]!
Main argument for mutations.
List of role ids. See also: Unique Identifiers
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