put Block Allocation - Initial
PUT {{HostName}}/blk/v1/hotels/{{HotelId}}/blocks/{{BlockId}}/allocation/roomTypes/ECO
Request Body
{"criteria"=>{"hotelId"=>"{{HotelId}}", "blockId"=>{"type"=>"Block", "idContext"=>"OPERA", "id"=>"{{BlockId}}"}, "allocationRoomTypes"=>[{"allocationGridDates"=>[{"roomAllocationInfo"=>[{"inventory"=>{"forceOverbook"=>false}, "rate"=>{"onePerson"=>"240", "twoPerson"=>"240", "threePerson"=>"260"}, "start"=>"2021-09-27", "end"=>"2021-09-27"}, {"inventory"=>{"forceOverbook"=>false}, "rate"=>{"onePerson"=>"200", "twoPerson"=>"220"}, "start"=>"2021-09-26", "end"=>"2021-09-26"}], "allocation"=>"RATES"}, {"roomAllocationInfo"=>[{"inventory"=>{"forceOverbook"=>false, "onePerson"=>"4", "twoPerson"=>"4"}, "start"=>"2021-09-27", "end"=>"2021-09-27"}, {"inventory"=>{"forceOverbook"=>false, "onePerson"=>"3", "twoPerson"=>"3"}, "start"=>"2021-09-26", "end"=>"2021-09-26"}], "allocation"=>"INITIAL"}], "roomType"=>"EXEC"}], "genericRoomType"=>false}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-hotelid | string | ||
x-app-key | string |