# 暂停 / 恢复 / 终止定投计划

`POST` `/v1/dailycoins/toggle`

:::warning 仅支持 Longbridge 香港 / 新加坡账户
此方法仅支持 Longbridge 香港 / 新加坡账户，可操作任意标的，包括美股。
:::

更改现有定投计划的状态：暂停、恢复或永久终止。

## Parameters

### Request Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `plan_id` | string | Yes | 定投计划 ID。 |
| `status` | string | Yes | 目标状态：`Suspended`（暂停）、`Active`（恢复）、`Finished`（终止）。 |

## Request Example

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

## Response

### Response JSON Example

```json
{
  "code": 0,
  "message": "success"
}
```
