pydo.apps.validate_rollback()

Generated on 9 Jun 2026 from pydo version v0.36.0

Usage

client.apps.validate_rollback(
    app_id="4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf",
    body={
        "deployment_id": "3aa4d20e-5527-4c00-b496-601fbd22520a",
        "skip_pin": False,
    },
)
Returns JSONRaises HttpResponseError

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

app_id string required

The app ID

deployment_id string optional

Example: 3aa4d20e-5527-4c00-b496-601fbd22520a

The ID of the deployment to rollback to.

skip_pin boolean optional

Example: False

Whether 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

Show 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)

Response Example

Show Response Example
{
  "valid": true
}

More Information

See /v2/apps/{app_id}/rollback/validate in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.