Restore Version
POST
/api/v1/object/versions/restore
const url = 'https://example.com/api/v1/object/versions/restore?key=example&version_id=example&bucket=example';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://example.com/api/v1/object/versions/restore?key=example&version_id=example&bucket=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”key
required
Key
string
version_id
required
Version Id
string
bucket
required
Bucket
string
Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}