跳转到主要内容
DELETE
从计划中移除促销
从计划中移除促销的附加关系。该计划不再提供此促销,因此无法将其应用于该计划上的新订阅。已经拥有该促销的订阅不会改变:它们会保留其副本,直到其变为 COMPLETED 或 ENDED。 响应没有响应体。要在单个订阅上结束促销,请使用从订阅中移除促销。
更改 cycles附加关系不可编辑。要更改 cycles 或 on_pause,请使用此 endpoint 移除该附加关系,然后重新附加促销。

错误

授权

public-api-key
string
header
默认值:<Your public-api-key>
必填
private-secret-key
string
header
默认值:<Your private-secret-key>
必填

请求头

X-Account-Code
string
必填

您的 Yuno Dashboard 中的 account_id(UUID)。必填:缺少该参数时返回 400 BAD_REQUEST("Invalid x-account-code header.")。

路径参数

plan_id
string
必填

计划的唯一标识符。

promotion_id
string
必填

要从计划中移除的促销 ID(UUID)。

响应

204。促销已从计划中移除。响应没有响应体。