Core GraphQL APIReferenceMutations
Identity__update Customer
{ permissions: ['*', 'update'], collectionName: 'identity__Customer', } Requires a signed-in staff user. Needs the `identity__Customer` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
MUTATION
identity__updateCustomer(input: CustomerUpdateInput!, where: CommonFindDocumentDto!): CommonMutationResponse!{ permissions: ['*', 'update'], collectionName: 'identity__Customer', } Requires a signed-in staff user. Needs the identity__Customer update permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input*where*Returns
- identity__updateCustomer
_id*ID!Example Request
mutation Identity__updateCustomer($input: CustomerUpdateInput!, $where: CommonFindDocumentDto!) { identity__updateCustomer(input: $input, where: $where) { _id }}{ "input": { "avatar": { "external": "string", "fileAssetId": "1" }, "email": "string" }, "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "identity__updateCustomer": { "_id": "1" } }}