<commit_before>---
title: Booking Resource - POST
layout: operation
---


# Post Booking Details

## Description
Creates a new booking or updates an existing booking. A new booking will be assigned to the specified trip, or if no trip is specified, the first itinerary that spans the booking dates. If no trip is specified and no itinerary exists that spans the booking dates, a new itinerary will be created.<commit_msg>Edits to page title for consistency<commit_after>---
title: Post booking details
layout: operation
---



## Description
Creates a new booking or updates an existing booking. A new booking will be assigned to the specified trip, or if no trip is specified, the first itinerary that spans the booking dates. If no trip is specified and no itinerary exists that spans the booking dates, a new itinerary will be created.
{'fraction_non_alphanumeric': 0.0477326968973747, 'fraction_numerical': 0.0, 'mean_word_length': 4.24375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4160050', 'n_tokens_mistral': 207, 'n_tokens_neox': 192, 'n_words': 129}