Collections

Add a photo to a collection

Save a photo into a collection. The photo automatically becomes the collection's cover if it is the first one added. Adding the same photo twice returns a 409.

post/api/v1/collections/{collection_id}/photos

Request

  • Base URL: https://api.pexafy.com
  • URL: https://api.pexafy.com/api/v1/collections/{collection_id}/photos
  • Auth: API key in header x-api-key

Path parameters

collection_idinteger required

The numeric identifier of the collection to add the photo to.

Request body

photo_idstring required
photo_thumbnail_urlstring nullable
photo_sourcestring nullable
photo_photographerstring nullable

Response

Successful Response

successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.