Report this

What is the reason for this report?

API v2 - You specified an invalid image for Droplet creation.

Posted on June 23, 2014

As you read the title when i make request with PHP cURL i get the response message of invalid image.

I can see all the image listings “/v2/images/” including the one i request with JSON data which looks like this: <pre> { “name”: “My-Droplet”, “region”: “nyc1”, “size”: “4gb”, “image”: 4201396 } </pre> Now the image 4201396 is totally exist and I also able to get image details “/v2/images/4201396”.

Why the droplet creation API method didn’t recognize the image id? How can i prevent the error? And why the error occurred?



This textbox defaults to using Markdown to format your 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.

I have same issue… Did anybody get any solution?

I have same issue…

I tried with id, name and slug and no ones work

Did anybody get any solution?

I have same issue. Not able to create droplet using image from web api call.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.