API Reference - Album Photos

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000108052

← Back to API Reference | Getting Started

Album Photos

Individual photos within an album group. Each photo belongs to an album group via group_id.

Model name in URL: users_portfolio — DB table: users_portfolio

The Album Photo Object

FieldTypeDescription
photo_idintegerUnique photo ID (primary key, read-only)
user_idintegerID of the member who owns this photo required on create
group_idintegerAlbum group this photo belongs to required on create
filestringPhoto filename on the server
thumbnailstringThumbnail image filename
titlestringPhoto title or caption
desctextPhoto description
keywordstextKeywords or tags for the photo
statusinteger0=Hidden, 1=Active
orderintegerDisplay order within the album
group_coverinteger1 if this is the album's cover photo
profile_coverinteger1 if this is used as the profile cover photo
linktextURL associated with this photo
pricenumberPrice (for product photo types)
product_categorystringProduct category (for product photo types)
manufacturerstringManufacturer name (for product photo types)
availabilitystringProduct availability
conditionstringProduct condition (New, Used, etc.)
photo_date_addedstringDate photo was uploaded (format: YYYYMMDDHHmmss)
photo_date_updatedstringDate photo was last updated
photo_tokenstringUnique photo token (auto-generated)
photo_filenamestringURL-friendly photo slug
original_image_urlstringOriginal URL for imported images
revision_timestamptimestampLast modified timestamp (auto-updated)
room_idintegerRoom or sub-group ID for organizing photos
mattintegerMatte/border display flag
facebook_photo_idstringFacebook photo ID (for imported Facebook photos)
orgfilestringOriginal filename before processing
reason_inactivestringReason the photo was deactivated
inv_idstringInventory or reference ID
product_typestringProduct type classification (for product photo types)
additional_fieldstextCustom field data stored as serialized or JSON content
data_typeintegerData type classification ID
data_idintegerRelated data category (post type) ID
image_importedstringImage import status: 0=not imported, 1=imported, 2=failed

List Album Photos

GET /api/v2/users_portfolio/get
Copy
# Get all photos in a specific album group
curl -X GET "https://www.yourdomain.com/api/v2/users_portfolio/get?property=group_id&property_value=15" \
  -H "X-Api-Key: your-api-key-here"

Retrieve an Album Photo

GET /api/v2/users_portfolio/get/{photo_id}
Copy
curl -X GET "https://www.yourdomain.com/api/v2/users_portfolio/get/99" \
  -H "X-Api-Key: your-api-key-here"

Create an Album Photo

POST /api/v2/users_portfolio/create
Copy
curl -X POST "https://www.yourdomain.com/api/v2/users_portfolio/create" \
  -H "X-Api-Key: your-api-key-here" \
  -d "user_id=42" \
  -d "group_id=15" \
  -d "title=Before+the+renovation" \
  -d "original_image_url=https%3A%2F%2Fexample.com%2Fimage.jpg" \
  -d "status=1"

Update an Album Photo

PUT /api/v2/users_portfolio/update
Copy
curl -X PUT "https://www.yourdomain.com/api/v2/users_portfolio/update" \
  -H "X-Api-Key: your-api-key-here" \
  -d "photo_id=99" \
  -d "title=Updated+Photo+Title" \
  -d "order=1"

Delete an Album Photo

DELETE /api/v2/users_portfolio/delete
Copy
curl -X DELETE "https://www.yourdomain.com/api/v2/users_portfolio/delete" \
  -H "X-Api-Key: your-api-key-here" \
  -d "photo_id=99"