pydo.apps.create_deployment()
Generated on 20 Oct 2025
from pydo version
v0.18.0
Description
Creating an app deployment will pull the latest changes from your repository and schedule a new deployment for your app.
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"))
create_resp = client.apps.create_deployment(app_id="b6bdf840", body={"force_build": True})More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.