为该本书设置应用场景。
Request
HTTP request
POST https://www.featapi.com/api/dimzou/bundle/{id}/set-apply-scenes/
Parameters
- Path parameters
Parameter name | Value | Description |
---|---|---|
id | string | bundle id |
授权
此请求需要具有以下所有范围的授权:
Scopes |
---|
dimzou_bundle |
有关更多信息,请参阅认证和授权页面。
Request body
在请求体中,提供具有以下属性的 User.applyScene 资源:
Property name | Value | Description | Notes |
---|---|---|---|
Required Properties | |||
apply_scenes | list[string] | 提交应用场景名称的列表 |
Response
如果成功,则此方法在响应正文中返回 Dimzou.bundle 资源。
200 成功设置应用场景
{
"data": {
"template_config": {
"cover_template": "I",
"chapter_template": "I"
},
"permission": 0,
"category": null,
"language": "zh-CN",
"id": 110652,
"type": 0,
"status": 0,
"is_multi_chapter": false,
"title": "Dimzou 新API文档",
"summary": "Dimzou模块 新API文档,主要对新修改的模型/接口作一下说明",
"create_time": "2020-03-10T07:30:33.376886Z",
"last_modified": "2020-03-20T08:09:40.978843Z",
"publish_version": null,
"publish_time": null,
"delete_time": null,
"user_id": 4416382589854,
"statistical": {
},
"viewers_count": 7,
"cover_image": null,
"kind": "dimzou_bundle",
"cover_images": null,
"apply_scenes": [
"文档"],
"sn": "CN200310-0000037"
}
}
404 Not found
示例返回数据可参考 API Common – Resource Not Found