Update Booking

Overview

HTTP Method: PUT

Endpoint URL: https://coreapi.impexdocs.com/api/v1/booking/{booking_id}

Authentication: Required

Response Format: JSON

Description

To modify a Booking, make a PUT request to the specified endpoint with the required information. The response will be a JSON object containing:

  • Response Code
  • Status
  • Message
  • Booking ID

Request

Path Parameter

  • Booking ID (booking_id): The identifier generated during the creation of a new Booking. Retrieve this ID from the response of the POST Booking API.

Example Path Parameter

https://coreapi.impexdocs.com/api/v1/booking/your_booking_id

Example Request

Ensure to include the Booking ID in the path and provide any additional fields that need modification in the request JSON.

Response

The API will respond with a JSON object containing:

  • Response Code
  • Status
  • Message
  • Booking Id

Example Response JSON

{
    "response_code": 0,
    "status": 201,
    "message": "Booking Updated successfully.",
    "result": {
        "booking_id": "b6120344-e19f-48e7-9978-4154c63db2f0"
    }
}

Note

  • Ensure proper authentication before making the request.
  • Use the Booking ID obtained during the creation of the Booking for the path parameter.
  • Provide the necessary fields to be modified in the request JSON.
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!