pydo.projects.patch()
Generated on 16 Feb 2026
from pydo version
v0.26.0
Description
To update only specific attributes of a project, send a PATCH request to /v2/projects/$PROJECT_ID. At least one of the following attributes needs to be sent.
Parameters
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
project_id |
string | True | A unique identifier for a project. | |
body |
JSON or IO[bytes] | True |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
req = {
"name": "my-web-api"
}
resp = client.projects.patch(project_id="4e1bfbc3", body=req)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.