Core resources


Administration


Booking flow

Attributes

Attributes to segment and filter units by

The attribute object

Attributes

iduuid

Unique identifier

organization_iduuid

Identifier of the organization this attribute is defined in

created_attimestamp with time zone

Creation timestamp

namejsonb

Localized name

orderinteger

Order of the attribute displayed on widgets and websites

type"single-select" | "multi-select"

Attribute type, either single-select of multi-select

The attribute object
{
"id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-12-06T04:21:00.268Z",
"name": {},
"order": 1,
"type": "single-select"
}

List attributes

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this attribute is defined in

created_atFilter<>

Creation timestamp

nameFilter<>

Localized name

orderFilter<>

Order of the attribute displayed on widgets and websites

typeFilter<>

Attribute type, either single-select of multi-select

Responses

200

A list of attributes with the selected columns

206

Partial Content

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

Create attributes

Body

Partial<Attribute>
| Array<Partial<Attribute>>

Responses

201

The newly created attributes with the selected columns

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

Delete attributes

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this attribute is defined in

created_atFilter<>

Creation timestamp

nameFilter<>

Localized name

orderFilter<>

Order of the attribute displayed on widgets and websites

typeFilter<>

Attribute type, either single-select of multi-select

Responses

204

The deleted attributes with the selected columns

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

Update attributes

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this attribute is defined in

created_atFilter<>

Creation timestamp

nameFilter<>

Localized name

orderFilter<>

Order of the attribute displayed on widgets and websites

typeFilter<>

Attribute type, either single-select of multi-select

Body

Partial<Attribute>

Responses

204

The updated attributes with the selected columns

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