Unseal Space
REST APIVersions

Restore a durable Project version

POST
/v1/projects/{id}/versions/restore

Creates a new main commit whose tracked tree equals the confirmed target version; history is never rewritten.

x-api-key<token>

Workspace-owned API key with per-resource permissions.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

targetSha*string
Match^[0-9a-f]{40}$
confirmedSha*string
Match^[0-9a-f]{40}$
idempotencyKey*string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/restore" \  -H "Content-Type: application/json" \  -d '{    "targetSha": "string",    "confirmedSha": "string",    "idempotencyKey": "string"  }'
{  "sha": "string",  "restoredFromSha": "string",  "noOp": true}