1. 知识库
  2. 设置文档缩略图

设置文档缩略图

 

添加或替换现有文档的缩略图。 缩略图需要是 RGB 或 RGBA PNG 或 JPEG。 如果DocumentGUID不存在 – 将显示错误( DocumentGUID –由 api 调用创建文档返回)

网址:

发布:http://api.aurelon.com/api/v2/document/<文档GUID> /缩略图/<页码>

请求参数:

    • DocumentGUID:GUID,必需:文档的 GUID
    • PageNumber : int, optional : 文档的页面,默认为 1

请求标头:

内容类型:图片/png
MisKey:见认证

请求正文:

PNG 或 JPEG 的二进制内容。

回复:

包含操作结果的内容类型 application/json。

成功:

200 OK : { “Message”:”文档缩略图保存成功”, “ThumbnailGUID”: “00092EA6-fb01-11e5-9b85-793ef2c92c66” }

错误:

  • 401 Unauthorized : {“Message”:”Invalid MisKey”}
  • 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
  • 404 未找到: {“消息”:“未找到 DocumentGUID”}
  • 500 内部服务器错误: {“消息”:“内部服务器错误”}
Updated on 5月 10, 2022

Was this article helpful?