> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UpdateCustomer

> Updates a customer.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `UpdateCustomer(request: UpdateCustomerCommandRequestInput!): UpdateCustomerCommandResponse!`

## Arguments

**`request`**: `UpdateCustomerCommandRequestInput!` (required)

## Returns

`UpdateCustomerCommandResponse!`

**`customerId`**: `ID!`

ID of the updated customer

## Examples

```graphql Mutation
mutation UpdateCustomer($request: UpdateCustomerCommandRequestInput!) {
  UpdateCustomer(request: $request) {
    customerId
  }
}
```

```json Variables
{
  "request": {
    "customerId": "id"
  }
}
```

```json Response
{
  "data": {
    "UpdateCustomer": {
      "customerId": "id"
    }
  }
}
```
