v3
Drive

Restore a Drive file to a prior generation (API)

Restore a Drive file to a prior generation. Authenticate with your API key in the Authorization header: Authorization: Bearer <your-api-key>.

post/v3/drive/files/restore

Request body

pathstring required

Drive-relative path of the file to restore

generationinteger required

GCS generation ID to restore as the new live version

Response

File restored successfully

pathstring required

Drive-relative path that was restored

new_generationinteger required

New live generation ID after the restore

restored_frominteger required

Generation ID that was promoted to live

updatedstring date-time required

Timestamp of the new live generation

size_bytesinteger required

Size of the restored file in bytes

Changes

No recorded changes to this endpoint across all 1 revision of this API.