重新为该章节排序。
Request
HTTP request
POST https://www.featapi.com/api/dimzou/bundle/{id}/sort-chapter/
Parameters
- Path parameters
Parameter name | Value | Description |
---|---|---|
id | string | 章节的bundle id |
授权
此请求需要具有以下所有范围的授权:
Scopes |
---|
dimzou_bundle |
有关更多信息,请参阅认证和授权页面。
Request body
Property name | Value | Description | Notes |
---|---|---|---|
Required Properties | |||
node_id | integer | 章节id | |
new_sort | integer | 排序后的章节新序号 |
Response
如果成功,则此方法在响应正文中返回Dimzou.node资源。
200 成功排序
{
"data": [
{
"id": 7926,
"node_type": 0,
"text_title": "章节2",
"text_summary": "章节2",
"sort": 1,
"created_at": "2020-03-23T07:36:32.536310Z",
"updated_at": "2020-03-23T07:36:32.930761Z",
"status": 0,
"is_deleted": false,
"visibility": true,
"node_publish_time": null,
"manuscript": null
},
{
"id": 7427,
"node_type": 0,
"text_title": "qq",
"text_summary": "qq-\n",
"sort": 2,
"created_at": "2019-07-19T12:04:32.546111Z",
"updated_at": "2019-07-31T07:29:38.585335Z",
"status": 0,
"is_deleted": false,
"visibility": true,
"node_publish_time": null,
"manuscript": null
}]
}
404 Not found
示例返回数据可参考 API Common – Resource Not Found