跳转到主要内容
POST
对 paused 订阅传入未来的 Unix 毫秒时间戳 resumeAt,即可设置或替换自动恢复时间。例如,JavaScript 表达式 { resumeAt: Date.now() + 24 * 60 * 60 * 1000 } 表示 24 小时后恢复。 传入以下 JSON 可改为手动恢复。订阅会继续保持暂停。
不传请求体或传 {} 效果相同。设置、修改或清空自动恢复时间都会触发 subscription.updated.pause_schedule_set。实际恢复时才会触发 subscription.resumed。 订阅未暂停时返回 90100259。时间超出允许的预约范围时返回 90100258,错误消息中会给出本次可选的 UTC 时间范围。

授权

X-API-KEY
string
header
必填

Your secret API key obtained from the Clink dashboard (Developers section)

请求头

X-Timestamp
string
必填

Current timestamp in milliseconds since Unix epoch (required for request signing)

示例:

"1783513683000"

路径参数

id
string
必填

Unique identifier of the subscription

请求体

application/json
resumeAt
integer<int64> | null

Automatic resume time in Unix milliseconds, later than both now and the pause time and within the allowed scheduling window. Omit or send null for manual resumption.

示例:

1799366400000

响应

Updated subscription on success. Check the business code in the response.

code
integer<int32>

Clink business result code. A value of 200 indicates success.

msg
string

Human-readable result message describing the outcome of the request.

data
object

Subscription details after the operation, including the current status and billing period.