Skip to main content
err:unkey:application:deployment_is_production
You tried to stop or start a production deployment, and you can’t do that directly. You get HTTP 412.
Example response

Likely causes

  • You called deployments.stopDeployment or deployments.startDeployment on a production deployment. Stop and start are only for preview deployments.

How to fix

  1. To take a production deployment out of service, promote or roll back to another production deployment with deployments.promoteDeployment or deployments.rollbackDeployment.
  2. Use stop and start only on preview deployments.
See Production and preview for what each kind of environment allows.
Last modified on October 6, 2026