SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
site builder

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.

POSThttps://app.softsolz.uk/api/v1/services/site-builder/projects/{id}/snapshots/{snapshot_id}/restore

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

idstringrequired
snapshot_idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Idempotency-Keystring

Optional 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"
}
}