POST
Add a photo to a collection

Authorizations

x-api-key
string
header
required

Pass your Pexafy API key in this header.

Get your API key at pexafy.com/dashboard/api-keys/create.

Path Parameters

collection_id
integer
required

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

Body

application/json
photo_id
string
required
Required string length: 1 - 255
photo_thumbnail_url
string | null
Maximum string length: 2048
photo_source
string | null
Maximum string length: 100
photo_photographer
string | null
Maximum string length: 255

Response

Successful Response

success
boolean
data
object
meta
object
error
object | null