The response is the environment, with the new activeDeploymentId.
Only a deployment of this environment that succeeded can be restored. Your plan keeps a limited number of recent successful deployments for rollback: an older one is a 409.
The next deployment that succeeds becomes current again, as usual. Roll back again, or fix forward.