To update only specific attributes of your default project, send a PATCH request to /v2/projects/default
. At least one of the following attributes needs to be sent.
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
req = {
"name": "my-web-api"
}
resp = client.projects.patch_default(body=req)
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.