/booking/:id - UpdateBooking (URL)

PUT {{host}}/booking/1

Request that allows you to update a complete Booking within the API. This request updates the booking using URL.

Authorisation

This request requires you to be authorised. Which can be done in one of two ways:

  1. Basic Auth - Create a basic authorization header using Basic Auth with the credentials admin/password123
  2. Cookie based - Create a cookie header with the value token=abc123. To get a valid token, send a request to POST /auth

Request Body

[{"name"=>"firstname", "value"=>"Jim", "datatype"=>"string"}, {"name"=>"lastname", "value"=>"Brown", "datatype"=>"string"}, {"name"=>"totalprice", "value"=>"111", "datatype"=>"number"}, {"name"=>"depositpaid", "value"=>"true", "datatype"=>"boolean"}, {"name"=>"bookingdates[checkin]", "value"=>"2018-01-01", "datatype"=>"string"}, {"name"=>"bookingdates[checkout]", "value"=>"2018-01-02", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
Cookiestring