Core resources


Administration


Booking flow

Site listings

Listed units on a site

The site listing object

Attributes

iduuid

Unique identifier

product_iduuid
products.id

Identifier of the related unit

site_iduuid
sites.id

Identifier of the site this listing is defined in

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

featuredboolean

Whether the listing is featured on the site

orderinteger

Order of the listing as displayed on the site

slugjsonb

Slug of the listing

The site listing object
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"site_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-12-06T04:35:03.475Z",
"updated_at": "2024-12-06T04:35:03.475Z",
"featured": false,
"order": 0,
"slug": {}
}

List site listings

Filters

idFilter<>

Unique identifier

product_idFilter<>

Identifier of the related unit

site_idFilter<>

Identifier of the site this listing is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

featuredFilter<>

Whether the listing is featured on the site

orderFilter<>

Order of the listing as displayed on the site

slugFilter<>

Slug of the listing

Responses

200

A list of site listings with the selected columns

206

Partial Content

GET/site_listings
curl -X GET "https://api.bookingmood.com/v1/site_listings?select=*" \
  -H "Authorization: Bearer YOUR_API_KEY"

Create site listings

Body

Partial<SiteListing>
| Array<Partial<SiteListing>>

Responses

201

The newly created site listings with the selected columns

POST/site_listings
curl -X POST "https://api.bookingmood.com/v1/site_listings" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '[]'

Delete site listings

Filters

idFilter<>

Unique identifier

product_idFilter<>

Identifier of the related unit

site_idFilter<>

Identifier of the site this listing is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

featuredFilter<>

Whether the listing is featured on the site

orderFilter<>

Order of the listing as displayed on the site

slugFilter<>

Slug of the listing

Responses

204

The deleted site listings with the selected columns

DELETE/site_listings
curl -X DELETE "https://api.bookingmood.com/v1/site_listings" \
  -H "Authorization: Bearer YOUR_API_KEY"

Update site listings

Filters

idFilter<>

Unique identifier

product_idFilter<>

Identifier of the related unit

site_idFilter<>

Identifier of the site this listing is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

featuredFilter<>

Whether the listing is featured on the site

orderFilter<>

Order of the listing as displayed on the site

slugFilter<>

Slug of the listing

Body

Partial<SiteListing>

Responses

204

The updated site listings with the selected columns

PATCH/site_listings
curl -X PATCH "https://api.bookingmood.com/v1/site_listings" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{}'