°C/bar/m change

dive.io in Deutsch

Resource /self/photos

This resource represents a Diver's own photos, and allows for uploading new Photos.

Resource URI
https://api.dive.io/v1/self/photos (.xml/.json)
Supported HTTP methods
PUT (add/upload), OPTIONS

PUT /self/photos (upload)

Creates a new Photo object, using the JPG or PNG image that was sent in the PUT request.
Request structure
The file PUT to the server will be used as the photo. Use PNG or JPG images only, and keep them under 6MB.
Response structure
A single Photo object

The response includes the new Photo's "Id", which can then be subsequently used to set the photo's attributes with the /photos/<id> method.