Anchor to companyLocationRevokeRolescompany
companyLocationRevokeRoles
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Revokes roles on a company location.
Anchor to Arguments
Arguments
- Anchor to companyLocationIdcompany•
Location Id ID!required The location whose roles are being revoked.
- Anchor to rolesToRevokeroles•
To Revoke [ID!]!required The current roles to revoke.
Was this section helpful?
Anchor to CompanyLocationRevokeRolesPayload returnsCompanyLocationRevokeRolesPayload returns
- Anchor to revokedRoleAssignmentIdsrevoked•
Role Assignment Ids A list of role assignment IDs that were removed from the company location.
- Anchor to userErrorsuser•
Errors [BusinessCustomer non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation companyLocationRevokeRoles($companyLocationId: ID!, $rolesToRevoke: [ID!]!) {2 companyLocationRevokeRoles(companyLocationId: $companyLocationId, rolesToRevoke: $rolesToRevoke) {3 revokedRoleAssignmentIds4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "companyLocationId": "gid://shopify/<objectName>/10079785100",3 "rolesToRevoke": [4 "gid://shopify/<objectName>/10079785100"5 ]6}
{
"companyLocationId": "gid://shopify/<objectName>/10079785100",
"rolesToRevoke": [
"gid://shopify/<objectName>/10079785100"
]
}