Core resources


Administration


Booking flow

Permissions

Access level for team members with the user role per unit.

The permission object

Attributes

iduuid

Unique identifier

member_iduuid
members.id

Identifier of the related member

product_iduuid
products.id

Identifier of the related unit

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

permission"maintenance" | "view-bookings" | "manage-bookings" | "all"

Permission level

The permission object
{
"id": "00000000-0000-0000-0000-000000000000",
"member_id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-05-11T18:17:03.527Z",
"updated_at": "2024-05-11T18:17:03.527Z",
"permission": "view-bookings"
}

List permissions

Filters

idFilter<uuid>

Unique identifier

member_idFilter<uuid>

Identifier of the related member

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

permissionFilter<"maintenance" | "view-bookings" | "manage-bookings" | "all">

Permission level

Responses

200

A list of permissions with the selected columns

206

Partial Content

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

Create permissions

Body

Partial<Permission>
| Array<Partial<Permission>>

Responses

201

The newly created permissions with the selected columns

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

Delete permissions

Filters

idFilter<uuid>

Unique identifier

member_idFilter<uuid>

Identifier of the related member

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

permissionFilter<"maintenance" | "view-bookings" | "manage-bookings" | "all">

Permission level

Responses

204

The deleted permissions with the selected columns

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

Update permissions

Filters

idFilter<uuid>

Unique identifier

member_idFilter<uuid>

Identifier of the related member

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

permissionFilter<"maintenance" | "view-bookings" | "manage-bookings" | "all">

Permission level

Body

Partial<Permission>

Responses

204

The updated permissions with the selected columns

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