Skip to main content

Get history operations for file

Get history operations for file

note

[Since 2.3]

POST /api/v1/{fileId}/history HTTP/1.1
  1. Path parameters
ParameterDescription
fileIdThe ID of the file.
offsetOffset of operations, used for pagination. By default = 0.
limitLimit of operations, used for pagination. By default = 0.
periodTime period for operations.
  1. Example request
curl 'http://localhost:8080/api/v1/files/c50b0133-ac62-4a0f-af73- 1220eff26a74/history?offset=0&limit=5&period=3600' -i -X GET \
-H 'X-co-auth-token: 66d5a198d7eb4ecc239952bca46248ec'
  1. Example response headers
HTTP/1.1 200 OK
X-co-request-id: kjjzfKBDUQQ25re3merMp4T0Pup95XuO
Content-Type: application/json
Content-Length: 1626
[ content of the response is skipped ]
  1. Response fields
PathTypeDescription
[]ArrayArray of HistoryOperation objects.
[].operationTimeStringThe time of creation of operation (formatted ISO 8601 timestamp).
[].publicLinkExpirationTimeDataThe time of expiration of the public link (formatted ISO 8601 timestamp).
[].publicLinkBlockedUntilTimeDataThe blocked until time of the public link (formatted ISO 8601 timestamp).
[].historyOperationTypeStringType of history opertaion.
[].fileNameStringFile name.
[].destinationDirIdStringDestination directory id.
[].destinationDirNameStringDestination directory name.
[].oldNameStringOld name of file.
[].isPasswordProtectedBooleanMark of password protected.
[].byAdminBooleanMark of admin operation.
[].userProfile.avatarIdStringUser avatar id
[].userProfile.emailStringUser email.
[].userProfile.firstNameStringFirst name of user
[].userProfile.isDeletedBooleanUser is deleted
[].userProfile.idStringUnique identifier of user
[].userProfile.lastNameStringLast name of user
[].userProfile.loginStringUser login.
[].userProfile.middleNameStringMiddle name of user
[].recipient.roleStringThe primary role for this user
[].recipient.recipientTypeStringRecipient type
[].recipient.groupNameStringName of the group
[].recipient.userProfileObjectUser profile structire
[].recipient.userProfile.avatarIdStringUser avatar Id
[].recipient.userProfile.emailStringUser email
[].recipient.userProfile.firstNameStringFirst name of user
[].recipient.userProfile.isDeletedStringFlag user is deleted
[].recipient.userProfile.idStringUnique identifier of user
[].recipient.userProfile.lastNameStringLast name of user
[].recipient.userProfile.loginStringUser login
[].recipient.userProfile.middleNameStringMiddle name of user
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: kjjzfKBDUQQ25re3merMp4T0Pup95XuO
Content-Type: application/json
Content-Length: 1380
[
{
"operationTime": "2022-11-14T11:48:31.000Z",
"publicLinkExpirationTime": "2022-11-14T11:48:31.000Z",
"userProfile": {
"avatarId": "a00bbb30-993e-4632-925f-152939195049",
"isDeleted": false,
"email": "testsrvdocs@srv-one.tacos.devoffice.ru",
"firstName": "testsrvdocs",
"lastName": "testsrvdocs",
"login": "testsrvdocs@srv-one.tacos.devoffice.ru",
"middleName": "testsrvdocsich",
"id": "f904-89D3-A1234",
"userRole": "user"
},
"historyOperationType": "share_object",
"recipient": {
"role": "editor",
"recipientType": "user",
"userProfile": {
"avatarId": " a00bbb30-993e-4632-925f-152939195049",
"isDeleted": false,
"email": "testsr@srv-one.ta.dev.ru",
"firstName": "testsrvdocs2",
"lastName": "testsrvdocs2",
"login": "testsrvdocs2@srv-one.tacos.devoffice.ru",
"middleName": "testsrvdocsich",
"id": "f904-89D3-A1234",
"userRole": "user"
}
}
},
{
"operationTime": "2022-11-14T11:48:31.000Z",
"userProfile": {
"avatarId": "a00bbb30-993e-4632-925f-152939195049",
"isDeleted": false,
"email": "testsrvdocs@srv-one.tacos.devoffice.ru",
"firstName": "testsrvdocs",
"lastName": "testsrvdocs",
"login": "testsrvdocs@srv-one.tacos.devoffice.ru",
"middle_name": "testsrvdocs2ich",
"id": "f904-89D3-A1235",
"userRole": "user"
},
"historyOperationType": "create_public_link",
"isPasswordProtected": true
},
{
"operationTime": "2022-11-14T11:48:30.000Z",
"userProfile": {
"avatarId": "a00bbb30-993e-4632-925f-152939195049",
"isDeleted": false,
"email": "testsrvdocs@srv-one.tacos.devoffice.ru",
"firstName": "testsrvdocs",
"lastName": "testsrvdocs",
"login": "testsrvdocs@srv-one.tacos.devoffice.ru",
"middleName": "testsrvdocsich",
"id": "f904-89D3-A1236",
"userRole": "user"
},
"historyOperationType": "upload_document"
}
]