Skip to Content
StoreOSv0.27.1
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).

MUTATIONidentity__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)}
Variables
{  "body": {    "name": "string",    "permissions": [      {        "actions": [          "string"        ],        "collectionName": "string"      }    ]  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "identity__updateRole": true  }}