Drive > Files > File/Directory > Version

Update current

Update current file version

put/2/drive/{drive_id}/files/{file_id}/versions/current

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}/versions/current
  • Auth
    HTTP bearer

Path parameters

drive_idinteger required

Drive identifier

file_idinteger required

File identifier

Request body

keep_foreverboolean required

Indicate whether the current version should be kept forever

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

databoolean

Example response

{
  "result": "success"
}

Changes

No recorded changes to this operation across all 40 revisions of this API.