pydo.projects.assign_resources()
Generated on 8 May 2026
from pydo version
v0.34.0
Usage
client.projects.assign_resources(
project_id="4de7ac8b-495b-4884-9a69-1050c6793cd6",
body={
"resources": [...],
},
)Description
To assign resources to a project, send a POST request to /v2/projects/{project_id}/resources.
You must have both project:update and <resource>:read scopes to assign new resources. For example, to assign a Droplet to a project, include both the project:update and droplet:read scopes.
Parameters
project_idstring requiredA unique identifier for a project.
resourcesarray of strings optionalExample:
['do:droplet:13457723']A list of uniform resource names (URNs) to be added to a project. Only resources that you are authorized to see will be returned.
Request Sample
Response Example
More Information
See /v2/projects/{project_id}/resources in the API reference for additional detail on responses, headers, parameters, and more.