API Reference - Multi Image Posts

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

← Back to API Reference | Getting Started

Album Groups

Album groups are photo album containers on member profiles. Each group can contain multiple individual photos (see Album Photos). Albums are used for portfolios, project galleries, and product showcases.

Model name in URL: users_portfolio_groups — DB table: users_portfolio_groups

The Album Group Object

FieldTypeDescription
group_idintegerUnique album group ID (primary key, read-only)
user_idintegerID of the member who owns this album required on create
data_idintegerPost type (data category) ID required on create
group_namestringAlbum name/title
group_desctextAlbum description or content
group_locationstringLocation associated with this album
group_datetimestampAlbum date/timestamp
group_orderintegerDisplay order on profile
group_statusinteger0=Hidden, 1=Published
group_tokenstringUnique group token (auto-generated)
group_filenamestringURL-friendly album slug
group_typestringAlbum type or category
group_categorystringCategory classification
sticky_postinteger1 if album is pinned to the top
post_tagstextComma-separated tags
post_locationstringPost location text
latstringLatitude coordinate
lonstringLongitude coordinate
property_statusstringProperty status (for real estate post types)
property_typestringProperty type (for real estate post types)
property_pricenumberProperty price (for real estate post types)
property_bedsstringNumber of bedrooms
property_bathsstringNumber of bathrooms
property_sqr_footnumberSquare footage
revision_timestamptimestampLast modified timestamp (auto-updated)
revision_countintegerNumber of times this album has been edited
date_updatedstringDate album was last updated
structure_idintegerStructure template ID for this album type
facebook_idstringFacebook album ID (for imported Facebook albums)
additional_fieldstextCustom field data stored as serialized or JSON content
data_typeintegerData type classification ID required on create
sticky_post_expiration_datedateDate when sticky post status expires
country_snstringCountry short name/code (e.g. US)
state_snstringState/province short name/code (e.g. CA)
post_availabilitystringAvailability status of the post
post_promostringPromotional text or code for this post
logged_userintegerID of the user who last saved this post
digital_product_payment_typestringPayment type for digital product posts (EG one-time, recurring)
digital_product_monthly_enableintegerWhether monthly billing is enabled for digital product posts
digital_product_quarterly_enableintegerWhether quarterly billing is enabled for digital product posts
digital_product_semi_annually_enableintegerWhether semi-annual billing is enabled for digital product posts
digital_product_annually_enableintegerWhether annual billing is enabled for digital product posts
digital_product_biennially_enableintegerWhether biennial billing is enabled for digital product posts
digital_product_triennially_enableintegerWhether triennial billing is enabled for digital product posts
digital_product_one_time_donation_enableintegerWhether one-time donation is enabled for digital product posts
digital_product_monthly_pricenumberMonthly price for digital product posts
add_creditsintegerWhether purchasing this post adds credits to the buyer
add_credits_amountnumberNumber of credits to add upon purchase
thank_you_pagestringURL or page slug to redirect to after purchase
email_template_namestringEmail template sent to the buyer after purchase
admin_email_template_namestringEmail template sent to the admin after purchase
pidstringExternal product or payment ID
auto_image_importintegerWhether to auto-import images for this post
post_imagestringFeatured image filename for this post
venue_style_tagsstringStyle tags for venue-type posts
venue_capacity_maxintegerMaximum capacity for venue-type posts
venue_price_rangestringPrice range for venue-type posts
static_urlstringCustom static URL override for this post

List Album Groups

GET /api/v2/users_portfolio_groups/get
Copy
curl -X GET "https://www.yourdomain.com/api/v2/users_portfolio_groups/get?property=user_id&property_value=42" \
  -H "X-Api-Key: your-api-key-here"

Retrieve an Album Group

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

Create an Album Group

POST /api/v2/users_portfolio_groups/create

The data_type parameter is required. The value can be obtained from the Post Types endpoint (data_categories/get).

Copy
curl -X POST "https://www.yourdomain.com/api/v2/users_portfolio_groups/create" \
  -H "X-Api-Key: your-api-key-here" \
  -d "user_id=42" \
  -d "data_id=5" \
  -d "data_type=4" \
  -d "group_name=Kitchen+Remodel+Portfolio" \
  -d "group_desc=Photos+from+recent+kitchen+renovation+projects" \
  -d "group_status=1"

Update an Album Group

PUT /api/v2/users_portfolio_groups/update
Copy
curl -X PUT "https://www.yourdomain.com/api/v2/users_portfolio_groups/update" \
  -H "X-Api-Key: your-api-key-here" \
  -d "group_id=15" \
  -d "group_name=Updated+Album+Name"

Delete an Album Group

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

Search Album Groups

POST /api/v2/users_portfolio_groups/search
Copy
curl -X POST "https://www.yourdomain.com/api/v2/users_portfolio_groups/search" \
  -H "X-Api-Key: your-api-key-here" \
  -d "q=kitchen" \
  -d "data_id=5"