---
title: "Update customer by ID"
method: PUT
path: "/api/v1/customers/{customer_id}"
tags: ["Customers"]
---

# Update customer by ID

`PUT /api/v1/customers/{customer_id}`

## Request

- Base URL: `https://api.simplesat.io`
- URL: `https://api.simplesat.io/api/v1/customers/{customer_id}`
- Auth: API key in header `X-Simplesat-Token`

Update a customer by ID.

Updating the `custom_attributes` or `tags` fields will overwrite any existing values.

Customers accept arrays in `custom_attributes`.

Required scopes: `write customers`

## Path parameters

- `customer_id` string, required

## Request body

- object
  - `external_id` string
  - `name` string
  - `company` string
  - `language` string
  - `tags` string[]
  - `custom_attributes` object

## Response `200`

Successful response

- object
  - `id` integer
  - `external_id` string
  - `name` string
  - `email` string
  - `company` string
  - `language` string
  - `tags` string[]
  - `custom_attributes` object

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/simplesat/apis/simplesat-api-v1.md) · [All operations](https://skmtc.dev/simplesat/apis/simplesat-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/simplesat/apis/simplesat-api-v1/revisions/1c245425416b?raw)
