Skip to main content
POST
Put an earlier version back
Takes a managing key (oc_key_...) or a signed-in session. See Custom connections for how a key is sent. Makes version n the key’s value again, as a new version. A 1Password version brings back its reference. Audited as restore.
Availability: OneCLI Cloud and self-hosted.

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Optional. 1 to 255 visible characters. A retry with the same key, path and body returns the first answer (with Idempotent-Replayed: true) for 24 hours. The same key with another path or body is 422 idempotency_conflict.

Required string length: 1 - 255

Path Parameters

id
string
required
Required string length: 1 - 64
version
integer
required
Required range: x >= 1

Response

The item, now at a new version.

fromVersion
integer
required
item
object
required
restoredCreatedAt
string
required

ISO 8601. When the restored version was first set. Older than the item's rotatedAt: an old value is back.

version
integer
required

The new version.