Obtaining File Operation Records
Function
Obtain the operation record list of a file.
URI
GET /koodrive/ose/v1/files/{fileId}/operations
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| fileId | Yes | String | File ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| pageCursor | No | String | Definition: Current page cursor. Constraints: The value is obtained from nextCursor of the previous page. No cursor needs to be transferred for the first page. Range: N/A Default Value: N/A |
| pageSize | No | Integer | Definition: Number of records returned on a page. Constraints: Before the final list is reached, partial or zero records may be returned. Range: 1-100 Default Value: 100 |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Definition: Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. For details about how to obtain an access token, see the corresponding developer guide. The format is Bearer+{access_token}. Constraints: N/A Range: N/A Default Value: N/A |
| X-User-Id | Yes | String | Definition: User ID on KooDrive, which is used for app authentication. Constraints: N/A Range: N/A Default Value: N/A |
| X-Date | Yes | String | Definition: Date, which is used for app authentication. The format is yyyyMMdd'T'HHmmss'Z'. Constraints: The time must be within 15 minutes from the current time and cannot be later than the current time. Range: N/A Default Value: N/A |
| X-Traceid | No | String | Definition: Service trace ID, which contains 58 bits. Constraints: N/A Range: The value contains 58 bits. Default Value: N/A |
| language | No | String | Definition: Language code. Constraints: The value must comply with the internationalization specifications. For example, en_us indicates English (United States). Range: The value must comply with the internationalization specifications. Default Value: en-US |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code |
| msg | String | Response |
| operations | Array of FileOperationLog objects | File operation list. |
| nextCursor | String | Next page cursor. |
Example Requests
Obtain the operation record list of the FqNZrzGgSKHkfGmwjf7dLgLlGkwrLEU35 file.
POST /koodrive/ose/v1/files/FqNZrzGgSKHkfGmwjf7dLgLlGkwrLEU35/operations?pageCursor=MTg5MzQzMjI2NDE2ODI4NDgwMDsyMDI2LTAyLTAxVDAwOjAwOjAwWg Authorization:Bearer+10f88*********4791e9ff
Example Responses
Status code: 200
File operation records.
{
"code" : 0,
"msg" : "SUCCESS",
"operations" : [ {
"id" : "1893432264168284800",
"operator" : "userId",
"operateType" : 1,
"operateTime" : "2026-02-27 17:55:43"
} ],
"nextCursor" : "nextCursor_9a9d3dc614e1"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | File operation records. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot