deleted-sites
Restore Deleted Site
Restore a deleted site from the List Deleted Sites endpoint. Restoring does not undelete the old site: it creates a new site built from the deleted site's files and database, on the account the deleted site belonged to. Domains, backups, logs and add-ons do not carry over, and the account's collaborators set to join new sites are added to it. The new site counts toward that account's plan like any other site.
post/deleted-sites/{id}/restore
Request
- Base URLhttps://my.pressable.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Request body
Response
Successful Response
Example response
{
"message": "Restoring as a new site, built from the deleted site's files and database. Domains, backups, logs and add-ons do not carry over, and collaborators set to join new sites are added. Poll GET /sites/{id} until its state is live.",
"data": {
"id": 123457,
"accountId": 2,
"clonedFromId": 123456,
"name": "my-old-site",
"state": "cloning"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.