Core GraphQL APIReferenceMutations
Identity__update Role
Requires a signed-in staff user. Needs the `identity__Role` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
MUTATION
identity__updateRole(body: UpdateRoleInput!, where: CommonFindDocumentDto!): Boolean!Requires a signed-in staff user. Needs the identity__Role update permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
body*where*Returns
identity__updateRole*Boolean!Example Request
mutation Identity__updateRole($body: UpdateRoleInput!, $where: CommonFindDocumentDto!) { identity__updateRole(body: $body, where: $where)}{ "body": { "name": "string", "permissions": [ { "actions": [ "string" ], "collectionName": "string" } ] }, "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "identity__updateRole": true }}