Put back an earlier version through the API, and only over the version you saw
A script or an agent without MCP can now put back an earlier version of your Website too. GET /api/deploy/<id>/versions lists the last five versions and POST /api/deploy/<id>/rollback puts one back as a new version, with the same checks and limits as the MCP tool site_rollback. It only works with an agent key that has the right rollback, which you tick yourself on the Agents tab. The deploy token cannot do it, because an old version can hold a page you removed on purpose. Over MCP and over the API, your AI can also send the version it saw online. If another version is online by the time we check, nothing is put back and your AI gets a conflict. One case slips through: a publication that is still being saved at that moment. It then stays in the list of versions, so you can put it back. What an agent key can do.
Ausgerollt als Commit f8d72cf3