Modulify

List site code backups

list_code_backups

Lists the code backup history of a site, newest first, with the title, file count and author of each code backup.

Each code backup is a commit that changed the site's code. The individual file names are not recorded, so it cannot answer which files a code backup changed.

This is what the editor shows in the Code tab of Backups, and it is separate from the page and component snapshots list_backups returns. It returns 10 per page, so pass page to go further back, and the response carries the total count. Use a row's _id as the codeBackupId for restore_code_backup. See Read an entry.

Inputs

Input Type Required Description
projectId string Yes The site id.
page integer No Which page of history to read, starting at 1. Defaults to 1.