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

# Update Customer

> Update an existing customer record

Updates fields on an existing customer. Only the provided fields are modified; omitted fields remain unchanged.

## Path Parameters

<ParamField path="customerId" type="string" required>
  Customer ID.
</ParamField>

## Request Body

<ParamField body="country" type="string">
  Updated ISO country code.
</ParamField>

<ParamField body="investorType" type="string">
  Updated investor classification. Values: `RETAIL`, `PROFESSIONAL`, `INSTITUTIONAL`.
</ParamField>

<ParamField body="email" type="string">
  Updated email address.
</ParamField>

<ParamField body="metadata" type="object">
  Updated metadata. Replaces existing metadata entirely.
</ParamField>

## Response Fields

<ResponseField name="success" type="boolean">Request status</ResponseField>
<ResponseField name="data" type="object">The updated customer object</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://api.trusset.org/customers/api/manage/cust_abc123" \
    -H "Content-Type: application/json" \
    -H "X-API-Key: trusset_abc123xy_secret..." \
    -d '{ "investorType": "INSTITUTIONAL" }'
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch(
    'https://api.trusset.org/customers/api/manage/cust_abc123',
    {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json',
        'X-API-Key': 'trusset_abc123xy_secret...'
      },
      body: JSON.stringify({ investorType: 'INSTITUTIONAL' })
    }
  );
  const { data: updated } = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "id": "cust_abc123",
      "walletAddress": "0xAbC123dEf456789012345678901234567890AbCd",
      "country": "DE",
      "investorType": "INSTITUTIONAL",
      "status": "verified",
      "archived": false
    },
    "metadata": {
      "requestId": "550e8400-e29b-41d4-a716-446655440000",
      "timestamp": "2025-06-15T12:00:00.000Z"
    }
  }
  ```
</ResponseExample>
