Detach database backup notification channel

Detach a notification channel from a database backup.


DELETE/api/backups/database/{databaseBackupId}/notification-channels/{channelId}

Detach database backup notification channel

This endpoint detaches a notification channel from the database backup. Without a location the channel is detached from every location it is attached to. Returns a 404 when the channel is not attached (at that location).

The response contains the channels that are still attached to the database backup.

Optional parameters

  • Name
    location
    Type
    string
    Description

    Only detach the channel from this location: before-backup, after-backup or failed-backup.

Request

DELETE
/api/backups/database/{databaseBackupId}/notification-channels/{channelId}
curl -X DELETE "https://ploi.io/api/backups/database/1/notification-channels/12?location=failed-backup" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": []
}