Kingsoft Office/drivesfilesVersionsRevert

暂不支持在线调用 · 原因见下方

Kingsoft OfficeWPS 365 企业协作开放 API

POST/v7/drives/{drive_id}/files/{file_id}/versions/{version_num}/revert

创建或执行「revert」

创建或执行「revert」;通过 POST /v7/drives/{drive_id}/files/{file_id}/versions/{version_num}/revert 调用。

通过 WPS 365 官方 OpenAPI(v7)管理通讯录与组织、云文档、多维表/智能表格、消息、会议、日历、邮件、待办、审批与事件订阅;官方机器契约为 open.wps.cn 发布的 OpenAPI 3.0.0(827 个 Endpoint / 3,119 个 Schema)。企业数据为私有业务数据,Pontx 不代理、缓存或聚合,调用方使用本地 SDK/CLI 直连。

请求

operationId
drivesfilesVersionsRevert
服务器
https://openapi.wps.cn
认证
app, delegated

请求参数

drive_id

pathstring必填

云文档空间(drive)ID。

example-id-0123456789

file_id

pathstring必填

文件 ID。

example-id-0123456789

version_num

pathintegerint必填

version num。

1

X-Kso-Id-Type

headerid_type

响应

200

revert_version_resp_bodyapplication/json

请求成功。

字段: data

default

unknownapplication/json

上游服务返回该状态。

{
  "data": {
    "comment": "example content",
    "created_by": {
      "avatar": "https://example.com",
      "company_id": "example-id-0123456789",
      "id": "example-id-0123456789",
      "name": "Example title",
      "type": "user"
    },
    "ctime": 1,
    "ext_attrs": {
      "name": "Example title",
      "value": "example content"
    },
    "file_id": "example-id-0123456789",
    "hash": {
      "sum": "example content",
      "type": "sha256"
    },
    "id": "example-id-0123456789",
    "modified_by": {
      "avatar": "https://example.com",
      "company_id": "example-id-0123456789",
      "id": "example-id-0123456789",
      "name": "Example title",
      "type": "user"
    }
  }
}