POST /api/tenants/{id}/restore

Restores the database using point-in-time restore or a specific long term backup.


The method returns HTTP 202 and a reference to the job in the LOCATION header.


Parameter Description Additional information
id The id of the tenant to restore. Define this parameter in the url.
tenantRestoreIn Tenant restore options. Define this parameter in the body.


  "LongTermBackupId": "sample string 1",
  "PointInTimeToRestoreTo": "2022-12-08T19:47:25.4404629+00:00",
  "CallbackUrl": "sample string 2"


Returns a job with information about the progress of the operation. Further calls to the jobs API can be made to get updated information about the status of the operation.


  "Id": "18ec3798-21ad-4b36-814a-800df533c535",
  "Progress": 33,
  "Name": "Create Site",
  "Status": "Started",
  "Log": "Creating site...",
  "CallbackUrl": "",
  "Jobs": 9,
  "CompletedJobs": 3,
  "StartedAt": "2022-12-08T19:34:50.8183296Z",
  "EndedAt": null,
  "Duration": "00:12:34.6377526",
  "Timestamp": "20221208193450818",
  "Tenant": null,
  "CreatedBy": {
    "Id": -2,
    "Email": "Api"
  "HasEnded": false