Creating an app deployment will pull the latest changes from your repository and schedule a new deployment for your app.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
app_id |
string | True | The app ID | |
body |
JSON or IO[bytes] | True |
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})
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.