PATCH/api/book/{token}/bookings/{id}/end

End a public booking in progress

Public: no bearer token. Frees the room now; only a booking made through TRMNL that is in progress.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 parameters
tokenstringrequired
The room public booking token
idintegerrequired
Booking id

3 status codes
200Ended
dataobjectoptional
The shape the public booking page uses: times are local to the room, without a zone
404A booking that has not started
410Unknown token, Booking with TRMNL off, or a room that cannot be booked: all look the same

Error handling

A 404 is returned: A booking that has not started. A 410 is returned: Unknown token, Booking with TRMNL off, or a room that cannot be booked: all look the same.