> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contactswing.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Customer

> Update an existing customer by its ID via the ContactSwing API.

### Authorizations

<ParamField header="Authorization" type="string" required>
  Enter your ContactSwing JWT Bearer token.
</ParamField>

### Path Parameters

<ParamField path="customer_id" type="string" required>
  Unique customer identifier from ContactSwing dashboard.
</ParamField>

### Request Body

**JSON: CustomerRequest** (see OpenAPI spec)

<ParamField path="name" type="string">
  Updated customer full name
</ParamField>

<ParamField path="phone" type="string">
  Updated phone number `+1234567890`
</ParamField>

<ParamField path="email" type="string">
  Updated email address `user@example.com`
</ParamField>

<ParamField path="tags" type="array">
  Updated customer tags `["vip", "lead"]`
</ParamField>

### Response

**200 OK** - Customer updated successfully

<ResponseField name="ctx_id" type="string">Request context ID</ResponseField>

<ResponseField name="data" type="object">
  <ResponseField name="id" type="string">Customer ID</ResponseField>
  <ResponseField name="name" type="string">Updated customer name</ResponseField>
</ResponseField>

<ResponseField name="message" type="string">"Request processed successfully"</ResponseField>

### Example

```json theme={null}
{
  "name": "John Doe Updated",
  "phone": "+1987654321",
  "tags": ["vip", "loyal"]
}
```
