POST
/api/v1/files/{slug}/versions/{version}/restoreRestore a file version
Makes an earlier version current again, at the same link. Versions start at 1.
Guide: Replace and versions
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.versionintegerRequired
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.
200 response: 15 fields (FileInfoResponse)
slugstringurlstringmarkdrop_urlstring | nullworkspace_urlstring | nulltitlestring | nullShown on the page and in link previews.
content_typestringsize_bytesintegersha256string | nullversionintegerupdated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.created_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.mediaobject | null5 fields inside
duration_snumber | nullwidthinteger | nullheightinteger | nullvideo_codecstring | nullaudio_codecstring | null
poster_urlstring | nulldownload_urlstring | nullaccessstring