> For the complete documentation index, see [llms.txt](https://changelog.airship.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.airship.co.uk/march-2025/03-03-2025-dynamic-booking-types.md).

# 03/03/2025 - Dynamic Booking Types

#### Dynamically create new booking types when adding booking data to Airship.

* Added a new optional field `type_name`to the booking object on contact.create and booking.update endpoints.
* If a booking `type_name` is provided and the type already exists within Airship then the existing `type_id` will be used, otherwise a new `type_id` will be created.
* `type_name` and `type_id` may not be used on the same request.
* String sanitisation is performed on the `type_name` field removing all special characters excluding apostrophes `'`
* Daily cron job will check how many new `booking_types` are created each day and alert if this exceeds the expected range.&#x20;

:woman\_technologist:Lee\
:woman\_technologist:Tom F\ <br>
