Websites

Restore a deleted website

Restores a soft-deleted website before its 30-day restore window expires: the deletion and purge-eligibility markers are cleared and the website returns to the active list. Calling this on an active website returns a 404. An expired restore window or an active website claiming the same slug returns a 409.

post/websites/{websiteId}/restore

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websites/{websiteId}/restore
  • Auth: HTTP bearer

Path parameters

websiteIdstring required

Response

The restored website.

idstring required

Unique website id.

organizationIdstring required

Id of the organization that owns the website.

namestring required

Display name, 1–200 characters.

slugstring required

URL-safe identifier unique among active websites in the organization.

customDomainsEnabledboolean required

Whether custom domains are enabled. Enabling is owner-only and makes the website a billable site; custom domains can only be attached while true.

headVersioninteger required

Latest draft source version number; starts at 1.

publishedVersioninteger nullable required

Currently published version. null when the website is not published.

createdAtstring date-time required

When the website was created.

updatedAtstring date-time required

When the website was last modified.

Changes

No recorded changes to this operation across all 1 revision of this API.