Restore State Webhook

Restore State Webhook

Restores can be requested from the application restore page or via the API. The current restore state will be communicated via webhook. See the Webhook Events Overview for more general information.

ID: Webhook ID
Event: database_backup_restore_state_changed
Target: Includes unique Database ID as id
Body: The previous and current restore state.

Example

{
  "id":123456,
  "event": "database_backup_restore_state_changed",
  "target": {
    "type": "DatabaseBackup",
    "id": 123,
    "owner_id": 123
  },
  "body": {
    "previous_state": {
      "code": 0,
      "description": "not requested"
    },
    "current_state": {
      "code": 1,
      "description": "requested"
    }
  },
  "partner": {
    "id": 1
  }
}