Skip to main content
POST
Restore an attachment version

Authorizations

Authorization
string
header
required

A ZeroGen API key: zg_ for a live key, zg_test_ for a test key.

Headers

Idempotency-Key
string

Makes retries safe: a retry with the same key and body returns the first response for 24 hours instead of repeating the work. Reusing a key with a different body returns 409.

Required string length: 1 - 255
Pattern: ^[\x21-\x7e]+$

Path Parameters

projectId
string
required

The project's ID

attachmentId
string
required

The attachment's ID

Body

application/json
version
integer
required
Required range: x <= 2147483647
expectedVersion
integer
required
Required range: x <= 2147483647

Response

The restored version and the historical version copied.

projectId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
version
integer
required
Required range: x <= 2147483647
restoredFrom
integer
required
Required range: x <= 2147483647
outcome
required
Available options:
restored,
unchanged