By rahilwazir
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.