pydo.apps.validate_rollback()
Generated on 4 Jul 2025
from pydo
version
v0.12.0
Description
Check whether an app can be rolled back to a specific deployment. This endpoint can also be used to check if there are any warnings or validation conditions that will cause the rollback to proceed under unideal circumstances. For example, if a component must be rebuilt as part of the rollback causing it to take longer than usual.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
app_id |
string | True | The app ID | |
body |
JSON or IO[bytes] | True |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
validate_req = {"deployment_id": "2", "skip_pin": False}
validate_resp = client.apps.validate_rollback("1", validate_req)
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.