Core resources


Administration


Booking flow

Attribute options

Possible options per attribute

The attribute option object

Attributes

iduuid

Unique identifier

attribute_iduuid
attributes.id

Identifier of the attribute this option is defined in

created_attimestamp with time zone

Creation timestamp

namejsonb

Localized name

orderinteger

Order of the option in the list of options as displayed on widgets and websites

The attribute option object
{
"id": "00000000-0000-0000-0000-000000000000",
"attribute_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-11-21T13:53:06.075Z",
"name": {},
"order": 1
}

List attribute options

Filters

idFilter<>

Unique identifier

attribute_idFilter<>

Identifier of the attribute this option is defined in

created_atFilter<>

Creation timestamp

nameFilter<>

Localized name

orderFilter<>

Order of the option in the list of options as displayed on widgets and websites

Responses

200

A list of attribute options with the selected columns

206

Partial Content

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

Create attribute options

Body

Partial<AttributeOption>
| Array<Partial<AttributeOption>>

Responses

201

The newly created attribute options with the selected columns

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

Delete attribute options

Filters

idFilter<>

Unique identifier

attribute_idFilter<>

Identifier of the attribute this option is defined in

created_atFilter<>

Creation timestamp

nameFilter<>

Localized name

orderFilter<>

Order of the option in the list of options as displayed on widgets and websites

Responses

204

The deleted attribute options with the selected columns

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

Update attribute options

Filters

idFilter<>

Unique identifier

attribute_idFilter<>

Identifier of the attribute this option is defined in

created_atFilter<>

Creation timestamp

nameFilter<>

Localized name

orderFilter<>

Order of the option in the list of options as displayed on widgets and websites

Body

Partial<AttributeOption>

Responses

204

The updated attribute options with the selected columns

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