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-07-21T10:19:10.444Z",
"updated_at": "2024-07-21T10:19:10.444Z",
"label": "",
"moment": {},
"status": "CONFIRMED",
"time": null
}

List product tasks

Filters

idFilter<uuid>

Unique identifier

assignee_idFilter<uuid>

Identifier of the default assignee for this task

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

labelFilter<text>

Label of the task

momentFilter<jsonb>

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

statusFilter<"CANCELLED" | "TENTATIVE" | "CONFIRMED">
timeFilter<time without time zone>

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<uuid>

Unique identifier

assignee_idFilter<uuid>

Identifier of the default assignee for this task

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

labelFilter<text>

Label of the task

momentFilter<jsonb>

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

statusFilter<"CANCELLED" | "TENTATIVE" | "CONFIRMED">
timeFilter<time without time zone>

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<uuid>

Unique identifier

assignee_idFilter<uuid>

Identifier of the default assignee for this task

product_idFilter<uuid>

Identifier of the related unit

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

labelFilter<text>

Label of the task

momentFilter<jsonb>

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

statusFilter<"CANCELLED" | "TENTATIVE" | "CONFIRMED">
timeFilter<time without time zone>

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 '{}'