post Copy Block

POST {{HostName}}/blk/v1/blocks/{{SourceBlockId}}/copy

Block ID in the path and body of the request is the existing block that you are copying to create a new block.

Request Body

{"criteria"=>{"sourceBlockId"=>{"type"=>"Block", "idContext"=>"OPERA", "id"=>"{{BlockId}}"}, "newBlock"=>{"hotelId"=>"{{HotelId}}", "blockCode"=>"UPGDTEST1", "blockStatus"=>"TEN", "blockOrigin"=>"PMS", "cateringStatus"=>"TEN", "blockDatesRange"=>{"start"=>"2024-10-08", "end"=>"2024-10-09"}, "gridType"=>"ORIGINAL"}, "copyInstructions"=>{"rooms"=>false, "rateCode"=>true, "blockComments"=>true, "blockCode"=>false, "catering"=>false, "events"=>false, "eventComments"=>false, "resources"=>false, "resourceComments"=>false, "resourcePrices"=>false, "attendeesCount"=>true, "contractBilling"=>false, "groupProfile"=>false, "alternateDates"=>false, "ratesOfAlternateDates"=>false, "potentialProfile"=>false, "adjustDecisionAndFollowupDate"=>true, "createAsSubBlock"=>false, "createAsTourBlock"=>false, "overbook"=>false, "contractGrid"=>false, "changeNotes"=>false, "otherResources"=>false, "eventForecastFigures"=>false}, "hotelId"=>"{{HotelId}}"}, "responseInstruction"=>"Summary"}

HEADERS

KeyDatatypeRequiredDescription
x-hotelidstring
x-app-keystring