How can I create droplet using DO API under a particular project?

November 16, 2018 777 views
API

I am using Python to create droplet using API provided by DIgital Ocean. My account has 2 projects enabled and under both I have some droplets running. Just wanted to know is there any way I can spin up a droplet using API under a particular project name.

TIA

1 Answer

You can't currently specify the project during the droplet create API request, but you can use the API to move it into the project after creation.
https://developers.digitalocean.com/documentation/changelog/api-v2/introducing-the-projects-api-beta/

Have another answer? Share your knowledge.