Core resources


Administration


Booking flow

Site pages

Additional pages on a site

The site page object

Attributes

iduuid

Unique identifier

site_iduuid
sites.id

Identifier of the site this page is defined in

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

contentjsonb

Content of the page

descriptionjsonb

Localized description of the page

slugjsonb

Slug of the page

status"draft" | "published"

Publication status of the page

titlejsonb

Localized title of the page

The site page object
{
"id": "00000000-0000-0000-0000-000000000000",
"site_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-06-21T07:48:23.032Z",
"updated_at": "2024-06-21T07:48:23.032Z",
"content": {},
"description": {},
"slug": {},
"status": "draft",
"title": {}
}

List site pages

Filters

idFilter<uuid>

Unique identifier

site_idFilter<uuid>

Identifier of the site this page is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

contentFilter<jsonb>

Content of the page

descriptionFilter<jsonb>

Localized description of the page

slugFilter<jsonb>

Slug of the page

statusFilter<"draft" | "published">

Publication status of the page

titleFilter<jsonb>

Localized title of the page

Responses

200

A list of site pages with the selected columns

206

Partial Content

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

Create site pages

Body

Partial<SitePage>
| Array<Partial<SitePage>>

Responses

201

The newly created site pages with the selected columns

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

Delete site pages

Filters

idFilter<uuid>

Unique identifier

site_idFilter<uuid>

Identifier of the site this page is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

contentFilter<jsonb>

Content of the page

descriptionFilter<jsonb>

Localized description of the page

slugFilter<jsonb>

Slug of the page

statusFilter<"draft" | "published">

Publication status of the page

titleFilter<jsonb>

Localized title of the page

Responses

204

The deleted site pages with the selected columns

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

Update site pages

Filters

idFilter<uuid>

Unique identifier

site_idFilter<uuid>

Identifier of the site this page is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

contentFilter<jsonb>

Content of the page

descriptionFilter<jsonb>

Localized description of the page

slugFilter<jsonb>

Slug of the page

statusFilter<"draft" | "published">

Publication status of the page

titleFilter<jsonb>

Localized title of the page

Body

Partial<SitePage>

Responses

204

The updated site pages with the selected columns

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