customer Update
Requires access scope.
Updates a customer's personal information such as name, password, and marketing preferences. Requires a valid to authenticate the customer making the update.
If the customer's password is updated, then all previous access tokens become invalid. The mutation returns a new access token in the payload to maintain the customer's session.
Password changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out.
Password changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out.
Caution: Password changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out.
Arguments
- customer (CustomerUpdateInput!)
- customerAccessToken (String!)
- Anchor to customercustomer•Customer
Update Input! required The customer object input.
- Anchor to customerAccessTokencustomer•String!
Access Token required The access token used to identify the customer.
- customer (Customer)
- customerAccessToken (CustomerAccessToken)
- customerUserErrors ([CustomerUserError!]!)
- userErrors ([UserError!]!): deprecated
- Anchor to customercustomer•Customer
The updated customer object.
- Anchor to customerAccessTokencustomer•Customer
Access Token Access Token The newly created customer access token. If the customer's password is updated, all previous access tokens (including the one used to perform this mutation) become invalid, and a new token is generated.
- Anchor to customerUserErrorscustomer•[Customer
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated The list of errors that occurred from executing the mutation.