---
title: "End a public booking in progress"
method: PATCH
path: "/api/book/{token}/bookings/{id}/end"
tags: ["Public booking"]
---

# End a public booking in progress

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

## Request

- Base URL: `https://trmnl.com`
- URL: `https://trmnl.com/api/book/{token}/bookings/{id}/end`
- Auth: none declared

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

## Response `200`

Ended

- object
  - `data` PublicBookingEvent: The shape the public booking page uses: times are local to the room, without a zone
    - `id` integer
    - `title` string
    - `startsAt` string
    - `endsAt` string
    - `actionLabel` string: Present when the visitor may cancel or end it
    - `actionMethod` 'delete' | 'patch'
    - `actionPath` string
    - `actionConfirm` string

## Other responses

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

---

[API](https://skmtc.dev/trmnl/apis/trmnl-api.md) · [All operations](https://skmtc.dev/trmnl/apis/trmnl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trmnl/apis/trmnl-api/revisions/66179e6d663b?raw)
