# Update DCA Plan

`POST` `/v1/dailycoins/update`

:::warning Longbridge HK / SG accounts only
This method is available to Longbridge HK / SG accounts only. It works with any supported symbol, including US stocks.
:::

Pause or resume an existing recurring investment plan.

## Parameters

### Request Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `plan_id` | string | Yes | DCA plan ID to update. |
| `per_invest_amount` | string | No | New recurring investment amount. |
| `invest_frequency` | string | No | Frequency: `Daily`, `Weekly`, `Fortnightly`, `Monthly`. |
| `invest_day_of_week` | string | No | Day of week for weekly/fortnightly plans: `mon`–`fri`. |
| `invest_day_of_month` | string | No | Day of month for monthly plans: `1`–`28`. |

## Request Example

```bash
curl --request POST \
  --url 'https://openapi.longbridge.com/v1/dailycoins/update' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{"plan_id":"<plan_id>","per_invest_amount":"<per_invest_amount>","invest_frequency":"<invest_frequency>","invest_day_of_week":"<invest_day_of_week>","invest_day_of_month":"<invest_day_of_month>"}'
```

## Response

### Response Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `plan_id` | string | Yes | ID of the updated plan |

### Response JSON Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "plan_id": "1286530167409217536"
  }
}
```
