Docs menu

API reference

updates.start

Update a Site

POST/api/v1/sites/{siteId}/updates

Needs the site:update permission. As an MCP tool it is named updates.start.

Details

Update a live Site to a newer released Site Build (by default the newest) and return the Job. In order: a restore point of the Site as it is now (its database, its images when media backup is on, and the code it runs), EmDash's database changes for the new version while the current code keeps serving, the new code, then checks that the Site answers on the new version with nothing left to migrate. Visitors keep the site throughout. Undo by restoring the before-update restore point, which puts the previous code back too. CONFLICT when the Site is not live, is already up to date, its Cloudflare account cannot be reached, or another update, backup or restore is running. Audited.

Input

FieldTypeNotes
siteIdrequiredstring1 to 64 characters
siteBuildIdstring

Output

FieldTypeNotes
jobIdrequiredstring
pointIdrequiredstring
siteBuildIdrequiredstring

All Operations