Core resources


Administration


Booking flow

Product attribute options

Attribute options assigned to each unit

The product attribute option object

Attributes

iduuid

Unique identifier

option_iduuid
attribute_options.id

Identifier of the related option

product_iduuid
products.id

Identifier of the related unit

created_attimestamp with time zone

Creation timestamp

The product attribute option object
{
"id": "00000000-0000-0000-0000-000000000000",
"option_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-11-23T10:11:15.806Z"
}

List product attribute options

Filters

idFilter<>

Unique identifier

option_idFilter<>

Identifier of the related option

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

Responses

200

A list of product attribute options with the selected columns

206

Partial Content

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

Create product attribute options

Body

Partial<ProductAttributeOption>
| Array<Partial<ProductAttributeOption>>

Responses

201

The newly created product attribute options with the selected columns

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

Delete product attribute options

Filters

idFilter<>

Unique identifier

option_idFilter<>

Identifier of the related option

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

Responses

204

The deleted product attribute options with the selected columns

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

Update product attribute options

Filters

idFilter<>

Unique identifier

option_idFilter<>

Identifier of the related option

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

Body

Partial<ProductAttributeOption>

Responses

204

The updated product attribute options with the selected columns

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