# updateCustomer

Audience: Developer

**Served by:** [maindata](https://docs.pyck.cloud/api/services/maindata.md)

## Arguments

| Name | Type |
| --- | --- |
| `id` | ID! |
| `input` | [UpdateCustomerInput](https://docs.pyck.cloud/api/inputs/updatecustomerinput.md)! |

## Returns

[Customer](https://docs.pyck.cloud/api/types/customer.md)

## Example

Updates a customer's data.

```graphql
mutation UpdateCustomer($id: ID!, $input: UpdateCustomerInput!) {
  updateCustomer(id: $id, input: $input) {
    createdAt
    createdBy
    data
    dataTypeID
    dataTypeSlug
    deletedAt
    deletedBy
    id
    tenantID
    updatedAt
    updatedBy
  }
}
```

**Variables**

```json
{
  "id": "<customer ID>",
  "input": {
    "data": {
      "industry": "technology",
      "name": "Acme Corp Updated"
    },
    "dataTypeID": "<customer data type ID>"
  }
}
```
