Emit rollback operator commands
Migration
Emit rollback operator commands
Records a rollback-initiated action and returns the operator command list for:
- AWS RDS restore from snapshot (creates NEW instance; does not delete prod)
- Lambda alias rollback via scripts/rollback.mjs
- DNS revert instructions
Does NOT auto-execute any steps (per feedback_prod_db_never_deletable + deploy gates).
Requires explicit confirmation phrase: body.confirm = "<entity_id>:rollback".
Requires migration:admin + migration:write scopes.
POST
Emit rollback operator commands
Authorizations
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Path Parameters
Body
application/json
The snapshot_id to restore from.
Explicit confirmation phrase. Must equal "<entity_id>:rollback" (e.g. "a1b2c3d4-...:rollback"). Stripe Connect-style confirmation token.
Lambda version to roll back to (optional; defaults to prev).
Response
Rollback plan emitted

