Rollback Deployment
lexq_deploy_rollbackRoll the group back to the version that was live before the current one. Call lexq_groups_get first: currentVersionName is live now, previousVersionName is what a rollback restores, and a rollback is rejected while canRollback is false. A rollback needs a previous version that is still ACTIVE and whose effective end has not passed (P-058).
Pass the currentVersionId and currentDeploymentId from that call as expectedCurrentVersionId and expectedCurrentDeploymentId. If anyone deployed, rolled back or undeployed in between, the rollback is rejected with 409 and nothing changes: P-062 if another version or no version is live, P-063 if the same version is live but from a newer deployment. Read the group again and check with the user before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | Yes | Rollback reason (required) | |
| groupId | Yes | Policy group ID | |
| expectedCurrentVersionId | Yes | currentVersionId from your last read of the group | |
| expectedCurrentDeploymentId | Yes | currentDeploymentId from your last read of the group |