REST APIVersions
Restore a durable Project version
Creates a new main commit whose tracked tree equals the confirmed target version; history is never rewritten.
Authorization
ApiKey x-api-key<token>
Workspace-owned API key with per-resource permissions.
In: header
Path Parameters
id*string
Format
uuidRequest 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
Length
1 <= length <= 128Response 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}