MINARA

更新账号通知偏好

PATCH /v1/notifications/preferences — 更新账号通知偏好

PATCH /v1/notifications/preferences

以非原子的部分合并方式更新 sections 和/或 strategies。板块仅允许 chat、strategy、trade 布尔值;策略项仅允许 id 和 onTradeFill。不得修改 billing、important。保存后重新读取后端,返回 { preferences, strategyResults }。strategyResults[].status 为 not_found 表示有效订阅已不存在,应刷新列表,不能当成保存成功。失败后应重新读取偏好,因为部分更新可能已生效。参数错误返回 400,上游客户端错误保留状态码,上游不可用或响应格式错误返回 502。此接口只设置通知,不会运行、订阅、停止策略或进行交易。

需要 Authorization: Bearer <token>

请求体

{ "sections": { "strategy": true }, "strategies": [{ "id": "published-strategy-id", "onTradeFill": false }] }

本页目录