pydo.projects.assign_resources_default()

Generated on 11 Jul 2025 from pydo version v0.13.0

Description

To assign resources to your default project, send a POST request to /v2/projects/default/resources.

You must have both project:update and :read scopes to assign new resources. For example, to assign a Droplet to the default project, include both the project:update and droplet:read scopes.

Request Sample

import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "resources": [
    "do:droplet:13457723",
    "do:domain:example.com"
  ]
}

resp = client.projects.assign_resources_default(body=req)

More Information

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.