Update specific fields of a customer, like email.

See Variables for how to pass in String data as arguments.

See Errors for additional information about error cases.

Replace <CUSTOMER_ID> with a real customer id.

Operation
mutation ($input: CustomerPatchInput!) {
  customerPatch(input: $input) {
    didSucceed
    inputErrors {
      path
      code
      message
    }
    customer {
      id
      email
    }
  }
}
Operation Variables
{
  "input": {
    "id": "<CUSTOMER_ID>",
    "email": "jdoe@example.com"
  }
}
Updated: