Website ChangeAlert Webhook

Website ChangeAlert Webhook

When Website changes are detected during the course of the scheduled daily, weekly or monthly backups, the ChangeAlert details will be sent via webhook. See the Webhook Events Overview for more general information.

ID: Webhook ID
Event: website_backup_change_alert
Target: Includes unqiue Website ID as id
Body: A report with the files added/changed/deleted counts, breakdown of static (html, css, js, htaccess) and dynamic file types (php, rb, asp, jsp), added/changed/deleted counts for images, videos, and other meida files, and a list of files changed. A report_date with the time the report was generated in ISO 8601 format.

Note: If the website_files or media_and_other group does not contain any added/changed/deleted items then the files object will be empty. The added, changed and deleted arrays in the example will only be present if one of those arrays has > 0 items.

Email Example

Webhook Example

{
   "id":123456,
   "event":"website_backup_change_alert",
   "target":{
      "type":"Website",
      "id":123456
   },
   "body":{
      "report_date":"2020-08-14T17:41:47+00:00",
      "report":{
         "total":{
            "added":0,
            "changed":5,
            "deleted":0
         },
         "website_files":{
            "files":{
               "added":[
               ],
               "changed":[
                  "/home4/ab9555/public_html/codeguardblog.com/wp-content/wflogs/.htaccess",
                  "/home4/ab9555/public_html/codeguardblog.com/wp-content/wflogs/config-livewaf.php",
                  "/home4/ab9555/public_html/codeguardblog.com/wp-content/wflogs/config-synced.php",
                  "/home4/ab9555/public_html/codeguardblog.com/wp-content/wflogs/config-transient.php",
                  "/home4/ab9555/public_html/codeguardblog.com/wp-content/wflogs/ips.php"
               ],
               "deleted":[
               ]
            },
            "html":{
               "added":0,
               "changed":0,
               "deleted":0
            },
            "css":{
               "added":0,
               "changed":0,
               "deleted":0
            },
            "js":{
               "added":0,
               "changed":0,
               "deleted":0
            },
            "htaccess":{
               "added":0,
               "changed":1,
               "deleted":0
            },
            "php":{
               "added":0,
               "changed":4,
               "deleted":0
            },
            "rb":{
               "added":0,
               "changed":0,
               "deleted":0
            },
            "asp":{
               "added":0,
               "changed":0,
               "deleted":0
            },
            "jsp":{
               "added":0,
               "changed":0,
               "deleted":0
            }
         },
         "media_and_other":{
            "files":{
               "added":[
               ],
               "changed":[
               ],
               "deleted":[
               ],
            },
            "image":{
               "added":0,
               "changed":0,
               "deleted":0
            },
            "video":{
               "added":0,
               "changed":0,
               "deleted":0
            },
            "other":{
               "added":0,
               "changed":0,
               "deleted":0
            }
         }
      }
   }
}