1. 知识库
  2. 设置文档资源

设置文档资源

 

添加或替换现有文档的实际内容文件(资源)。如果DocumentGUID不存在 – 将显示错误( DocumentGUID –由 api 调用返回Create Document )。

网址:

发布:http://api.aurelon.com/api/v2/document/<文档GUID>

请求标头:

内容类型:应用程序/八位字节流
MisKey:见认证

请求正文:

文档的二进制内容

回复:

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

成功:

200 OK : {“Message”:”文档资源成功保存”}

错误:

  • 400 错误请求: {“Message”:””DocumentGUID” value required”}
  • 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?