Skip to main content
POST
Restore a file version

Authorizations

X-Public-Key
string
header
required

Public half of the company API key. Format: pk_ followed by 64 hexadecimal characters.

X-Secret-Key
string
header
required

Secret half of the company API key. Format: sk_ followed by 64 hexadecimal characters. Stored as a hash server-side and shown only at creation or rotation.

Path Parameters

fileId
string<uuid>
required

File identifier.

versionId
string
required

Opaque storage version identifier. Read it from the version list.

Body

application/json
description
string
Maximum string length: 500
changeReason
string
Maximum string length: 500

Response

Restore result. Inspect the nested data.status.

status
integer
required
Example:

200

message
string
required
Example:

"Version restored"

data
object
required

Service result nested inside the controller envelope. The HTTP status is always 200 here; read status to detect failure.