Next Commerce

updateAccount

Update a user

Arguments

input·UpdateAccountInput!non-nullinput

Return type

UpdateAccountPayloadobject
success·Booleanscalar
errors·ExpectedErrorTypescalar
clientMutationId·Stringscalar
Mutation Reference
mutation UpdateAccount($input: UpdateAccountInput!) {  updateAccount(input: $input) {    success    errors    clientMutationId  }}
Variables
{  "input": {    "email": "<your-value>",    "firstName": "<your-value>",    "lastName": "<your-value>",    "phoneNumber": "<your-value>",    "acceptsMarketing": true,    "language": "en",    "metadata": {},    "clientMutationId": "<your-value>"  }}
JSON Response
{  "data": {    "updateAccount": {      "success": true,      "errors": null,      "clientMutationId": "<your-value>"    }  }}