Core resources


Administration


Booking flow

Site nav items

Items in the navigation bar of a site

The site nav item object

Attributes

iduuid

Unique identifier

parent_iduuid | null
site_nav_items.id

Identifier of the parent navigation item

site_iduuid
sites.id

Identifier of the site this navigation item is defined in

site_page_iduuid | null
site_pages.id

Identifier of the related page. Only applies when type is internal

created_attimestamp with time zone

Creation timestamp

labeljsonb

Localized label of the navigation item

orderinteger

Order of the navigation item as displayed on the site

type"external" | "internal"

Type of the navigation item, either internal or external

urltext

URL of the navigation item. Only applies when type is external

The site nav item object
{
"id": "00000000-0000-0000-0000-000000000000",
"parent_id": "00000000-0000-0000-0000-000000000000",
"site_id": "00000000-0000-0000-0000-000000000000",
"site_page_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-10-12T00:41:42.527Z",
"label": {},
"order": 0,
"type": "internal",
"url": ""
}

List site nav items

Filters

idFilter<>

Unique identifier

parent_idFilter<>

Identifier of the parent navigation item

site_idFilter<>

Identifier of the site this navigation item is defined in

site_page_idFilter<>

Identifier of the related page. Only applies when type is internal

created_atFilter<>

Creation timestamp

labelFilter<>

Localized label of the navigation item

orderFilter<>

Order of the navigation item as displayed on the site

typeFilter<>

Type of the navigation item, either internal or external

urlFilter<>

URL of the navigation item. Only applies when type is external

Responses

200

A list of site nav items with the selected columns

206

Partial Content

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

Create site nav items

Body

Partial<SiteNavItem>
| Array<Partial<SiteNavItem>>

Responses

201

The newly created site nav items with the selected columns

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

Delete site nav items

Filters

idFilter<>

Unique identifier

parent_idFilter<>

Identifier of the parent navigation item

site_idFilter<>

Identifier of the site this navigation item is defined in

site_page_idFilter<>

Identifier of the related page. Only applies when type is internal

created_atFilter<>

Creation timestamp

labelFilter<>

Localized label of the navigation item

orderFilter<>

Order of the navigation item as displayed on the site

typeFilter<>

Type of the navigation item, either internal or external

urlFilter<>

URL of the navigation item. Only applies when type is external

Responses

204

The deleted site nav items with the selected columns

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

Update site nav items

Filters

idFilter<>

Unique identifier

parent_idFilter<>

Identifier of the parent navigation item

site_idFilter<>

Identifier of the site this navigation item is defined in

site_page_idFilter<>

Identifier of the related page. Only applies when type is internal

created_atFilter<>

Creation timestamp

labelFilter<>

Localized label of the navigation item

orderFilter<>

Order of the navigation item as displayed on the site

typeFilter<>

Type of the navigation item, either internal or external

urlFilter<>

URL of the navigation item. Only applies when type is external

Body

Partial<SiteNavItem>

Responses

204

The updated site nav items with the selected columns

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