Bundle: update

Bundle: update

更新该本书的属性。

Request

HTTP request

PATCH https://www.featapi.com/api/dimzou/bundle/{id}/

Parameters

  • Path parameters
Parameter nameValueDescription
idstringbundle id

授权

此请求需要具有以下所有范围的授权:

Scopes
dimzou_bundle

有关更多信息,请参阅认证和授权页面。

Request body

在请求体中,提供具有以下属性的Dimzou.bundle资源:

Property nameValueDescriptionNotes
Optional Properties
template_configobject{
“cover_template”: “I”,
“chapter_template”: “I”
}
permissionintegerDimzou API 参考
categoryinteger书的分类Category ID,Dimzou.Category
languageinteger书的语言Language ID, Choices.LanguageLocale

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": {
          "age": [{
              "title": "16-18",
              "female": 1,
              "male": 1,
              "count": 2,
              "gte": 16,
              "lte": 18
          }],
          "education": [{
              "title": "College",
              "female": 2,
              "male": 1,
              "count": 3
          }],
          "industry": [{
              "title": "Other",
              "slug": null,
              "female": 1,
              "male": 1,
              "count": 2
          }],
          "location": [{
              "title": "Other",
              "female": 3,
              "male": 4,
              "count": 7
          }]
      },
      "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

发表评论

您的电子邮箱地址不会被公开。

您可以使用以下 HTML标签和属性:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Captcha Code