Core resources


Administration


Booking flow

Product tasks

Tasks required for all bookings for a unit

The product task object

Attributes

iduuid

Unique identifier

assignee_iduuid | null
members.id

Identifier of the default assignee for this task

product_iduuid
products.id

Identifier of the related unit

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

labeltext

Label of the task

momentjsonb

Moment at which the task should be completed. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

status"CANCELLED" | "TENTATIVE" | "CONFIRMED"
timetime without time zone | null
The product task object
{
"id": "00000000-0000-0000-0000-000000000000",
"assignee_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-11-21T19:35:25.672Z",
"updated_at": "2024-11-21T19:35:25.672Z",
"label": "",
"moment": {},
"status": "CONFIRMED",
"time": null
}

List product tasks

Filters

idFilter<>

Unique identifier

assignee_idFilter<>

Identifier of the default assignee for this task

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

labelFilter<>

Label of the task

momentFilter<>

Moment at which the task should be completed. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

statusFilter<>
timeFilter<>

Responses

200

A list of product tasks with the selected columns

206

Partial Content

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

Create product tasks

Body

Partial<ProductTask>
| Array<Partial<ProductTask>>

Responses

201

The newly created product tasks with the selected columns

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

Delete product tasks

Filters

idFilter<>

Unique identifier

assignee_idFilter<>

Identifier of the default assignee for this task

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

labelFilter<>

Label of the task

momentFilter<>

Moment at which the task should be completed. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

statusFilter<>
timeFilter<>

Responses

204

The deleted product tasks with the selected columns

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

Update product tasks

Filters

idFilter<>

Unique identifier

assignee_idFilter<>

Identifier of the default assignee for this task

product_idFilter<>

Identifier of the related unit

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

labelFilter<>

Label of the task

momentFilter<>

Moment at which the task should be completed. Formatted as { type: "check-in" | "checkout" | "confirmation" | "on-site" | "request", offset: integer }

statusFilter<>
timeFilter<>

Body

Partial<ProductTask>

Responses

204

The updated product tasks with the selected columns

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