PUT Set a monthly or yearly bundle tier
PUT /loom/v1/creators/me/subscriptionBundles/{subscriptionBundle}/tiers/{tier}
所属分组:Creator Subscriptions · 创作者订阅
Monthly subscriptions last 30 days and yearly subscriptions last 366 days.
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
PUT/loom/v1/creators/me/subscriptionBundles/{subscriptionBundle}/tiers/{tier}Set a monthly or yearly bundle tier
Monthly subscriptions last 30 days and yearly subscriptions last 366 days.
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
subscriptionBundle必填 | path / any | subscriptionBundle identifier |
tier必填 | path / any | tier identifier |
请求体 · 必填
Tier
application/json
| 字段 | 类型 | 说明 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | ||||||||||
expectedRevision | integer | ||||||||||
price | object | 展开结构
|
{
"enabled": false,
"expectedRevision": 0,
"price": {
"amount": "1.7027920",
"currency": "CNY"
}
}请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X PUT 'https://loomloom.shengsuanyun.com/loom/v1/creators/me/subscriptionBundles/{subscriptionBundle}/tiers/{tier}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"enabled": false,
"expectedRevision": 0,
"price": {
"amount": "1.7027920",
"currency": "CNY"
}
}'响应
200 OK
application/json
| 字段 | 类型 | 说明 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
createdAt | string | |||||||||||||||||||||||||
creatorUserId | integer | |||||||||||||||||||||||||
description | string | |||||||||||||||||||||||||
id | string | |||||||||||||||||||||||||
kind | string | |||||||||||||||||||||||||
name | string | |||||||||||||||||||||||||
revision | integer | |||||||||||||||||||||||||
sourceListingId | string | |||||||||||||||||||||||||
status | string | |||||||||||||||||||||||||
tiers | array | 展开结构
数组元素
| ||||||||||||||||||||||||
unlistedReason | string | |||||||||||||||||||||||||
updatedAt | string |
{
"createdAt": "string",
"creatorUserId": 0,
"description": "string",
"id": "string",
"kind": "string",
"name": "string",
"revision": 0,
"sourceListingId": "string",
"status": "string",
"tiers": [
{
"durationDays": 0,
"enabled": false,
"price": {
"amount": "1.7027920",
"currency": "CNY"
},
"tierType": "string"
}
],
"unlistedReason": "string",
"updatedAt": "string"
}