跳转到主要内容
POST
/
api
/
v1
/
smart-mode
/
{subscription_id}
/
toggle
切换订阅状态
curl --request POST \
  --url https://api.example.com/api/v1/smart-mode/{subscription_id}/toggle

切换订阅状态

暂停活跃的订阅或恢复已暂停的订阅。暂停期间不收取费用,也不监控转账。

路径参数

subscription_id
number
必填
订阅 ID

响应

返回更新后的订阅对象,包含新的 status

示例

curl -X POST https://api.tronrental.com/v1/smart-mode/42/toggle \
  -H "X-API-Key: your_api_key"
Response
{
  "id": 42,
  "address": "TYourAddress...",
  "label": "Main wallet",
  "status": "paused",
  "bw_guarantee": true,
  "created_at": "2026-03-05T12:00:00Z"
}