Restore the site files to a snapshot (the current state is snapshotted first).
Use it to undo a change. 404 when the snapshot does not belong to this website.
POST
https://app.softsolz.uk/api/v1/services/site-builder/projects/{id}/snapshots/{snapshot_id}/restoreRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredsnapshot_idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Response
Response Body
restoredintegerFiles restored.content_versionstring | nullVersion after the restore.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.siteBuilder.restoreProjectSnapshot('<id>', '<snapshot_id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": { "restored": 0, "content_version": "string" }}