post Sub Allocation

POST {{HostName}}/blk/v1/allocation

Request Body

{"subAllocations"=>{"subAllocationInfo"=>[{"subAllocation"=>{"masterAllocationInfo"=>{"blockIdList"=>[{"type"=>"Block", "idContext"=>"OPERA", "id"=>"{{BlockId}}"}], "hotelId"=>"{{HotelId}}"}, "blockDetails"=>{"blockCode"=>"231007SUBA_001", "blockName"=>"Sub Allocation", "timeSpan"=>{"startDate"=>"2023-10-22", "endDate"=>"2023-10-23"}, "blockStatus"=>{"bookingStatus"=>{"status"=>{"code"=>"INQ"}}}, "reservationType"=>{"reservationType"=>"GNON"}, "marketCode"=>{"marketCode"=>"CORP"}, "sourceOfSale"=>{"sourceCode"=>{"sourceCode"=>"CALL"}}, "blockOrigin"=>"CS", "rateProtectionDetails"=>{"criteria"=>"None"}, "nonCompeteDetails"=>{"criteria"=>"None"}, "blockClassification"=>"SubAllocation", "cateringOnlyBlock"=>false, "allowRateOverride"=>false, "manualCutOff"=>false, "wholesaleBlock"=>false, "controlBlockLocally"=>false}, "blockOwners"=>{"owner"=>[{"ownership"=>"Block", "ownerCode"=>"ALL", "primary"=>true}, {"ownership"=>"Catering", "ownerCode"=>"ALL", "primary"=>true}, {"ownership"=>"Rooms", "ownerCode"=>"ALL", "primary"=>true}], "lockBlockOwners"=>false, "lockRoomsOwners"=>false, "lockCateringOwners"=>false}, "reservationDetails"=>{"breakfast"=>{"breakfastIncluded"=>false}, "porterage"=>{"porterageIncluded"=>false}, "elastic"=>"1", "printRate"=>true, "housing"=>true, "controlBlockLocally"=>false}, "catering"=>{"overrideEventsProcessingWarnings"=>true}, "blockProfiles"=>{"fullOverlay"=>false}, "externalAttributes"=>{"eventType"=>"Convention", "rollEndDate"=>false}, "hotelId"=>"{{HotelId}}", "markAsRecentlyAccessed"=>true}}]}}

HEADERS

KeyDatatypeRequiredDescription
x-hotelidstring
x-app-keystring