Authentication > Roles > rolesModify
Commerce APIAuthenticationRolesrolesModify
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.


ids: [String!]!

List of role ids. See also: Unique Identifiers


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

name: String

The name of the role

Example: "Administrator"

Valid when: name is not empty

Valid when: name's length doesn't exceed 250 characters


permissions: [String!]

A set of permission bits describing this role


Result

[Role!]

Preview (typescript)

Loading module