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

MUTATIONidentity__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

  1. identity__updateCustomer
_id*ID!
Example Request
mutation Identity__updateCustomer($input: CustomerUpdateInput!, $where: CommonFindDocumentDto!) {  identity__updateCustomer(input: $input, where: $where) {    _id  }}
Variables
{  "input": {    "avatar": {      "external": "string",      "fileAssetId": "1"    },    "email": "string"  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "identity__updateCustomer": {      "_id": "1"    }  }}