Kingsoft OfficeWPS 365 enterprise collaboration open API
POST/v7/drives/{drive_id}/files/{file_id}/versions/{version_num}/update
Create or run update resource
Create or run update resource via POST /v7/drives/{drive_id}/files/{file_id}/versions/{version_num}/update.
Manage contacts and organization, cloud documents, DBSheet/smart sheets, messaging, meetings, calendars, mail, todo, approvals, and event subscriptions through the official WPS 365 OpenAPI (v7); the official machine contract is the OpenAPI 3.0.0 published on open.wps.cn (827 endpoints / 3,119 schemas). Enterprise data is private business data; Pontx does not proxy, cache, or aggregate it and callers use the local SDK/CLI directly.
Request
- operationId
drivesfilesVersionsUpdate- Server
https://openapi.wps.cn- Authentication
- app, delegated
Request parameters
drive_id
pathstringrequired
Cloud document drive ID.
example-id-0123456789
file_id
pathstringrequired
File ID.
example-id-0123456789
version_num
pathintegerintrequired
Version num.
1
Request body
Properties: commentext_attrs
Responses
200
update_version_resp_bodyapplication/json
Request succeeded.
Properties: data
default
unknownapplication/json
The upstream service returned this status.
{
"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"
}
}
}