To add a photo to a geocache use a mutlipart POST to /api/geocache/{oxcode} where oxcode identifies the geocache to add the photo to.
For example. http://www.opencaching.com/api/geocache/OX1234.
Images can be jpeg, bmp, gif, and png.
The server will automatically scale the image and convert to jpg. There is a 5 mb file size limit.
caption - Required
To update an existing photo. POST to http://www.opencaching.com/api/geocache/OX1234/caption.jpg
where OX1234 is the oxcode of the geocache and caption.jpg is the caption for the image.
delete - Set this to True to remove the image from the cache. There is no way to undo this.
The caption is the short description and name of the image.
It can not include the characters. |\?*<":>+[]/. and control characters in range 0-31 (0x00-0x1F)
Max length is 255 characters.
Accepted values: True or False with a default of false
Set this to true if the image would spoil the fun of finding the geocache.
Accepted values: True or False with a default of false
Set this to true if the image is required to find the geocache. This is common for puzzle caches.