Question

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

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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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/