OpenCaching.com/api/geocache/{oxcode}/photo

POST to create add a new photo to a geocache

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.

Special notes for parameters

caption - Required

POST to update an existing photo

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.

Special notes for parameters

delete - Set this to True to remove the image from the cache. There is no way to undo this.

Parameters

caption

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.

spoiler

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.

required

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.