# Update config pool

`PATCH https://api.cryptohopper.com/v1/hopper/{id}/config/pool/{pool_id}`

Part of [Bot config](https://www.cryptohopper.com/api-documentation/api-reference/bot-config.md) in the Cryptohopper API reference.

Updates a config pool of the hopper. The config is validated before it is saved; name, coins and enabled are optional.

OAuth scope: `read`, `manage`

config is required. The field names differ from creating a pool: name and coins instead of pool_name and selected_coins. coins can be an array or a comma separated string; an empty value clears the coins. enabled accepts true, false, 1 or 0. Not available for AI Bots.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `pool_id` | string | yes | Config pool ID. |
| `id` | string | yes | Hopper ID. |

## Example request

```bash
curl -X PATCH "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/config/pool/POOL_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Altcoins","coins":["ETH","SOL","ADA"],"config":{"max_open_positions":5,"stop_loss":1,"stop_loss_percentage":3},"enabled":true}'
```

## Response

Example response (illustrative values):

```json
{
    "data": "Config pool updated."
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
