v1
latestOpenAPI 3.1.02026-08-04151221521.2 KBBranches
Rollback Environment
Roll back an environment to a previous version.
Resolves environment to branch via branch rules.
Only works for environments with a single, literal branch rule (no wildcards).
Key behavior:
- EnvVar table is NOT modified (remains pending state for next deploy)
- Uses Version.secrets_snapshot as deployed state
post/agents/{namespace_slug}/{agent_name}/environments/{env_name}/rollback
Path parameters
namespace_slugstring required
agent_namestring required
env_namestring required
Request body
Response
Successful Response