Core API Documentation
Room
Rooms (also called calendar resources) are spaces such as studios, courts, or pool lanes that events and
appointments can be scheduled in. These endpoints return 404 unless rooms are enabled for the business.
The same endpoints are also available at
Desk Only
GET /api/v2/desk/rooms
Lists the business's rooms in display order, along with the room categories.
REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/rooms \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"calendar_resources": [
{
"id": 1,
"name": "Studio A",
"description": "Large studio with sprung floor",
"position": 1,
"calendar_resource_category_id": 1,
"location_id": 1,
"service_ids": [
4,
7
],
"allow_staff_hours_overbook": false,
"allow_staff_capacity_overbook": false,
"availability": {
"allow_to_book": true,
"capacity": 8,
"room_booking_length": 60,
"start_interval": 30,
"before_time": 0,
"after_time": 15,
"show_remaining_spaces": false,
"available_from": "08:00",
"available_to": "20:00"
}
},
{
"id": 2,
"name": "Pool Lane 1",
"description": null,
"position": 2,
"calendar_resource_category_id": 2,
"location_id": 1,
"service_ids": [
9
],
"allow_staff_hours_overbook": false,
"allow_staff_capacity_overbook": true,
"availability": {
"allow_to_book": false
}
}
],
"categories": [
{
"id": 1,
"name": "Studios",
"position": 1,
"description": null
},
{
"id": 2,
"name": "Pool",
"position": 2,
"description": null
}
]
}
GET /api/v2/desk/rooms/:id
Returns the details of a room.
REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/rooms/1 \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"calendar_resources": [
{
"id": 1,
"name": "Studio A",
"description": "Large studio with sprung floor",
"position": 1,
"calendar_resource_category_id": 1,
"location_id": 1,
"service_ids": [
4,
7
],
"allow_staff_hours_overbook": false,
"allow_staff_capacity_overbook": false,
"availability": {
"allow_to_book": true,
"capacity": 8,
"room_booking_length": 60,
"start_interval": 30,
"before_time": 0,
"after_time": 15,
"show_remaining_spaces": false,
"available_from": "08:00",
"available_to": "20:00"
}
}
]
}
Attributes
| id | integer | The id of the room. | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| name | string | The name of the room. | |||||||||||||||||||||||||||
| description | string | The description of the room. | |||||||||||||||||||||||||||
| position | integer | The display order of the room. | |||||||||||||||||||||||||||
| calendar_resource_category_id | integer | The id of the room's category, or null. | |||||||||||||||||||||||||||
| location_id | integer | The id of the room's location, or null. | |||||||||||||||||||||||||||
| service_ids | array | The ids of the services that can use the room. | |||||||||||||||||||||||||||
| allow_staff_hours_overbook | boolean | Whether staff can book the room outside its available hours. | |||||||||||||||||||||||||||
| allow_staff_capacity_overbook | boolean | Whether staff can book the room beyond its capacity. | |||||||||||||||||||||||||||
| availability | object | Online room booking settings.
|
Categories
The list response also includes