/booking/:id - UpdateBooking
PUT {{host}}/booking/1
A request that allows you to update a booking's details within the booking API. To update other bookings, simply update the booking ID from '1' to a different booking ID number.
Authorisation
To use this request you must be authorised.
Authorisation is achieved by creating a Cookie
header with the value token=abc123
. To get a valid token, you send a request to POST /auth
using the Auth
API in restful-booker-platform.
Simply run the request once with the default credentials to have Qodex add a token
to the Cookies manager.
Request Body
{"roomid"=>1, "firstname"=>"James", "lastname"=>"Dean", "depositpaid"=>true, "bookingdates"=>{"checkin"=>"2020-02-01", "checkout"=>"2020-02-05"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
accept | string | ||
Referer | null | ||
Content-Type | string |