pydo.apps.create_rollback()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.apps.create_rollback(
app_id="4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf",
body={
"deployment_id": "3aa4d20e-5527-4c00-b496-601fbd22520a",
"skip_pin": False,
},
)Description
Rollback an app to a previous deployment. A new deployment will be created to perform the rollback. The app will be pinned to the rollback deployment preventing any new deployments from being created, either manually or through Auto Deploy on Push webhooks. To resume deployments, the rollback must be either committed or reverted.
It is recommended to use the Validate App Rollback endpoint to double check if the rollback is valid and if there are any warnings.
Parameters
app_idstring requiredThe app ID
deployment_idstring optionalExample:
3aa4d20e-5527-4c00-b496-601fbd22520aThe ID of the deployment to rollback to.
skip_pinboolean optionalExample:
FalseWhether to skip pinning the rollback deployment. If false, the rollback deployment will be pinned and any new deployments including Auto Deploy on Push hooks will be disabled until the rollback is either manually committed or reverted via the CommitAppRollback or RevertAppRollback endpoints respectively. If true, the rollback will be immediately committed and the app will remain unpinned.
Request Sample
Response Example
More Information
See /v2/apps/{app_id}/rollback in the API reference for additional detail on responses, headers, parameters, and more.