Make a previous version the current one
POST/api/v1/buckets/:bucketId/files/:fileId/versions/:versionId/restore
Requires contributor role or above on this bucket. The restored version becomes the current content of the file. Other versions are kept.
Request
Responses
- 204
- 401
- 403
- 404
- 409
Version restored
Not authenticated. Note: a missing or invalid token is rejected with 403 FORBIDDEN (not 401); 401 is returned when the token's session has been revoked (SESSION_REVOKED).
Missing/invalid token, or the caller's role/group is below the required minimum (FORBIDDEN)
File or version not found (FILE_NOT_FOUND, FILE_VERSION_NOT_FOUND)
The version is not uploaded or is already current (FILE_VERSION_NOT_RESTORABLE)