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

# Update Account

> Update custom fields on an existing account by its Recotap account ID

`PUT /accounts/:rtp_aid`

Updates the custom fields of an existing account identified by its Recotap account ID (`rtp_aid`). Returns `404` if no account matches the `rtp_aid`. Returns `400` if the `rtp_aid` is not a valid format.

```bash theme={null}
curl -X PUT "https://eapi.recotap.com/api/v1/accounts/663abc..." \
  -H "X-Api-Key: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "customFields": { "CONTRACT_VALUE_C": 95000 }
  }'
```

**Request body**

| Field          | Type   | Required | Description                                                                                                                                                                                                                                                                        |
| -------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customFields` | object | No       | Key-value pairs using Recotap custom field keys e.g. `{ "CONTRACT_VALUE_C": 95000 }`. Per-key merge — only the keys you include are updated. Existing keys not present in the request are preserved. Keys must exist as active custom fields. Returns `400` if any key is unknown. |

**Response `data`**

```json theme={null}
{ "message": "Account updated successfully" }
```

<Warning>
  Only `customFields` is accepted. Sending `domain` or any other field returns `400`.
</Warning>
