Skip to main content
POST
Restore a site to a version

Authorizations

Authorization
string
header
required

A member credential in the Authorization: Bearer header: a member session JWT, a portal JWT whose login is linked to a membership in that company, an opaque member token, or a verified One Auth identity access token. The credential alone identifies the member and company. Member session and portal JWTs are read-only and are refused with 403 on every write.

Path Parameters

id
string<uuid>
required

Public id of one of the member's sites.

Body

application/json

The version to restore. Any other field is refused as an unknown field.

sha
string
required

The sha of the version, 7 to 40 hex characters, from sha in the versions listing.

Pattern: ^[0-9a-fA-F]{7,40}$

Response

The site now equals the version.

What a restore did.

status
integer
required

HTTP status code (mirrors the response status line).

data
object
required

The restored version and how many files it wrote and removed.

meta
object
required

Envelope metadata present on every response.