Question

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

Posted November 16, 2018 2.2k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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/

Submit an Answer