Retrieve the designated room ID of a device.
:mac
is the hypenated mac ID of the device, i.e.: XX-XX-XX-XX-XX-XX
{
"id": 5,
"title": "Jupiter"
}
No device with :mac
was found on DB.
{
"error": "Device unknown."
}
Retrieve the daily schedule of a given room.
:id
is the room ID, obtained via device endpoint.
[
{
"id": "h9u2f42ucfuse1chhovauobpdg",
"title": "Daily Standup",
"contact": "Batista Ford",
"start": "2018-10-16T09:00:00+03:00",
"end": "2018-10-16T10:00:00+03:00"
},
{
"id": "60mntgpeuqq161cbp4d82aik1s",
"title": "Project X Grooming",
"contact": "Hank Kissinger",
"start": "2018-10-16T10:00:00+03:00",
"end": "2018-10-16T10:30:00+03:00"
}
]
No room with :id
was not found on DB.
{
"error": "Room unknown."
}
Post a booking for a given room.
Payload | |
---|---|
mins |
integer |
This response has no body.
Room may have been simulatenously booked on the calendar.
{
"error": "Room unavailable."
}