To create a project, send a POST request to /v2/projects
.
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
req = {
"name": "my-web-api",
"description": "My website API",
"purpose": "Service or API",
"environment": "Production"
}
resp = client.projects.create(body=req)
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.