API v2 - You specified an invalid image for Droplet creation.
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:
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?
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.