Skip to content

blk: OPERA Cloud Block API

93 operations from Oracle’s published OHIP specifications (26.3.0.0). Each shows its HTTP method and path and the typed call on ctx.Ohip.Api. hotelId defaults to the invocation’s hotel.

Get modified blocks from a specific time period in OPERA.

GET /blk/v1/hotels/{hotelId}/blocks/changesByDateTime · hotel-scoped

Task<BlockChangesByDateTimeSummary?> ctx.Ohip.Api.Blk.BlockChangesByDateTimeAsync(string? hotelId = null, GetBlockStatusQueryParameterType[]? blockStatus = null, bool? cateringOnly = null, DateTimeOffset? endLastModifiedDate = null, bool? includeEventChanges = null, int? limit = null, int? offset = null, bool? openForPickup = null, DateTimeOffset? startLastModifiedDate = null, CancellationToken ct = default)

Change rate override

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/rate/override · hotel-scoped

Task<RateOverrideStatus?> ctx.Ohip.Api.Blk.ChangeRateOverrideAsync(string blockId, RateOverride body, string? hotelId = null, CancellationToken ct = default)

Use this API to create Property Leads

POST /blk/v1/hotels/{hotelId}/leads/{leadId}/propertyLeads · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.CreatePropertyLeadsAsync(string leadId, PropertyLeadsType body, string? hotelId = null, CancellationToken ct = default)

Delete alternate dates for a Block

DELETE /blk/v1/blocks/{blockId}/alternateDates · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.DeleteAlternateDatesAsync(string blockId, CancellationToken ct = default)

Delete a Block

DELETE /blk/v1/hotels/{hotelId}/blocks/{blockId} · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.DeleteBlockAsync(string blockId, string? hotelId = null, CancellationToken ct = default)

Delete Block access exclusion

DELETE /blk/v1/blocks/{blockId}/blockAccessExclusion · chain-level

Task<Status?> ctx.Ohip.Api.Blk.DeleteBlockAccessExclusionAsync(string blockId, string? hotelId = null, bool? allowCancelReservation = null, bool? allowCreateReservation = null, bool? allowModifyReservation = null, bool? excludeFromAvailability = null, bool? inactive = null, string? sourceType = null, string? sourceValue = null, CancellationToken ct = default)

Delete Block Attachment

DELETE /blk/v1/blocks/{blockId}/attachments/{attachId} · chain-level

Task<Status?> ctx.Ohip.Api.Blk.DeleteBlockAttachmentAsync(string blockId, string attachId, CancellationToken ct = default)

Delete a Block owner

DELETE /blk/v1/blocks/{blockId}/owners · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.DeleteBlockOwnersAsync(string blockId, CancellationToken ct = default)

Delete Block Restriction

DELETE /blk/v1/blocks/{blockId}/restrictions · chain-level

Task<Status?> ctx.Ohip.Api.Blk.DeleteBlockRestrictionAsync(string blockId, string? hotelId = null, DeleteCodeQueryParameterType? code = null, Date? endDate = null, string[]? roomTypes = null, Date? startDate = null, CancellationToken ct = default)

Remove Block Wash Schedule

DELETE /blk/v1/hotels/{hotelId}/blocks/{blockId}/washSchedules · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.DeleteBlockWashScheduleAsync(string blockId, string? hotelId = null, Date? washDate = null, CancellationToken ct = default)

Remove Block Wash Schedules

DELETE /blk/v1/blocks/{blockId}/washSchedules · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.DeleteBlockWashSchedulesAsync(string blockId, CancellationToken ct = default)

Get a Block By ID

GET /blk/v1/hotels/{hotelId}/blocks/{blockId} · hotel-scoped

Task<Block?> ctx.Ohip.Api.Blk.GetBlockAsync(string blockId, string? hotelId = null, bool? fetchAllocatedRoomTypes = null, GetFetchInstructionsQueryParameterType[]? fetchInstructions = null, bool? fetchRoomTypesWithInventory = null, bool? markAsRecentlyAccessed = null, double? numberOfDays = null, GetRoomAllocationCriteriaQueryParameterType[]? roomAllocationCriteria = null, string[]? roomTypes = null, Date? startDate = null, CancellationToken ct = default)

Get the Block activity log

GET /blk/v1/blockActivityLog · chain-level

Task<BlockActivityLog?> ctx.Ohip.Api.Blk.GetBlockActivityLogAsync(string? hotelId = null, Action<BlockActivityLogRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get Block Attachments

GET /blk/v1/blocks/{blockId}/attachments · chain-level

Task<BlockAttachments?> ctx.Ohip.Api.Blk.GetBlockAttachmentsAsync(string blockId, string? hotelId = null, string? attachedFileName = null, string? description = null, CancellationToken ct = default)

Get Block AvailaBility

GET /blk/v1/hotels/{hotelId}/blocks/{blockId}/availability · hotel-scoped

Task<BlockAvailability?> ctx.Ohip.Api.Blk.GetBlockAvailabilityAsync(string blockId, string? hotelId = null, Action<AvailabilityRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get a Block By ID

GET /blk/v1/hotels/{hotelId}/externalSystems/{externalSystemCode}/blocks/{blockExternalId} · hotel-scoped

Task<Block?> ctx.Ohip.Api.Blk.GetBlockByExtIdAsync(string externalSystemCode, string blockExternalId, string? hotelId = null, bool? fetchAllocatedRoomTypes = null, GetFetchInstructionsQueryParameterType[]? fetchInstructions = null, bool? markAsRecentlyAccessed = null, double? numberOfDays = null, GetRoomAllocationCriteriaQueryParameterType[]? roomAllocationCriteria = null, string[]? roomTypes = null, Date? startDate = null, CancellationToken ct = default)

Get Block Revenue for a given date.

GET /blk/v1/hotels/{hotelId}/blockDailyRevenue · hotel-scoped

Task<BlockDailyRevenueStatistics?> ctx.Ohip.Api.Blk.GetBlockDailyRevenueAsync(string? hotelId = null, GetBlockDailyRevenueCategoryQueryParameterType? blockDailyRevenueCategory = null, string[]? blockStatus = null, string[]? ownerCode = null, string[]? revenueGroup = null, string[]? revenueType = null, Date? statisticsDate = null, CancellationToken ct = default)

Get Block Daily Statistics

GET /blk/v1/blocks/dailyStatistics · chain-level

Task<BlockDailyStatistics?> ctx.Ohip.Api.Blk.GetBlockDailyStatisticsAsync(string? hotelId = null, Date? end = null, bool? genericRoomType = null, int? limit = null, int? offset = null, Date? start = null, CancellationToken ct = default)

Get exchange interfaces from business block

GET /blk/v1/hotels/{hotelId}/blocks/{blockId}/exchangeInterfaces · hotel-scoped

Task<GetBlockExchangeInterfacesResponse?> ctx.Ohip.Api.Blk.GetBlockExchangeInterfacesAsync(string blockId, string? hotelId = null, CancellationToken ct = default)

Get Block owners

GET /blk/v1/blocks/{blockId}/owners · chain-level

Task<BlockOwners?> ctx.Ohip.Api.Blk.GetBlockOwnersAsync(string blockId, string? hotelId = null, CancellationToken ct = default)

Get Posting Master Reservations for a Block

GET /blk/v1/hotels/{hotelId}/blocks/{blockId}/postingMaster/reservations · hotel-scoped

Task<BlockPMReservations?> ctx.Ohip.Api.Blk.GetBlockPMReservationsAsync(string blockId, string? hotelId = null, bool? postingmaster = null, CancellationToken ct = default)

Get Posting Master Reservations for a Block

GET /blk/v1/hotels/{hotelId}/externalSystems/{externalSystemCode}/blocks/{blockExternalId}/postingMaster/reservations · hotel-scoped

Task<BlockPMReservations?> ctx.Ohip.Api.Blk.GetBlockPMReservationsByExtIdAsync(string externalSystemCode, string blockExternalId, string? hotelId = null, bool? postingmaster = null, CancellationToken ct = default)

Get Block Range Information

GET /blk/v1/hotels/{hotelId}/blocks/{blockId}/allocationRange · hotel-scoped

Task<BlockRangeInfo?> ctx.Ohip.Api.Blk.GetBlockRangeInfoAsync(string blockId, string? hotelId = null, bool? genericRoomType = null, CancellationToken ct = default)

Retrieves all reservations created for the Block

GET /blk/v1/blocks/{blockId}/reservations · chain-level

Task<BlockReservations?> ctx.Ohip.Api.Blk.GetBlockReservationsAsync(string blockId, string? hotelId = null, GetFetchInstructionsQueryParameterType[]? fetchInstructions = null, CancellationToken ct = default)

Get Block restrictions

GET /blk/v1/blocks/{blockId}/restrictions · chain-level

Task<BlockRestrictions?> ctx.Ohip.Api.Blk.GetBlockRestrictionsAsync(string blockId, string? hotelId = null, string? duration = null, Date? endDate = null, string[]? roomType = null, Date? startDate = null, CancellationToken ct = default)

Fetch Block Revenue Changes

GET /blk/v1/blocks/{blockId}/revenueActivityLog · chain-level

Task<BlockRevenueChanges?> ctx.Ohip.Api.Blk.GetBlockRevenueChangesAsync(string blockId, string? hotelId = null, Date? changeEndDate = null, Date? changeStartDate = null, int? limit = null, int? offset = null, string[]? status = null, CancellationToken ct = default)

Operation to get room rate grid for a Block and supports pagination.

GET /blk/v1/hotels/{hotelId}/blocks/{blockId}/roomRateGrid · hotel-scoped

Task<BlockGridType?> ctx.Ohip.Api.Blk.GetBlockRoomRateGridAsync(string blockId, string? hotelId = null, bool? fetchAllocatedRoomTypes = null, int? limit = null, double? numberOfDays = null, int? offset = null, GetRoomAllocationCriteriaQueryParameterType[]? roomAllocationCriteria = null, string[]? roomTypes = null, Date? startDate = null, CancellationToken ct = default)

Get room status for a Block

GET /blk/v1/blocks/{blockId}/roomsStatus · chain-level

Task<BlockRoomsStatus?> ctx.Ohip.Api.Blk.GetBlockRoomsStatusAsync(string blockId, string? hotelId = null, CancellationToken ct = default)

Get Bock Room Types

GET /blk/v1/blocks/{blockId}/roomTypes · chain-level

Task<BlockRoomTypes?> ctx.Ohip.Api.Blk.GetBlockRoomTypesAsync(string blockId, string? hotelId = null, Date? endDate = null, bool? fetchAllocatedRoomTypes = null, bool? fetchGenericRoomTypes = null, Date? startDate = null, CancellationToken ct = default)

Get Blocks

GET /blk/v1/blocks · chain-level · deprecated

Task<BlockSummaries?> ctx.Ohip.Api.Blk.GetBlocksAsync(string? hotelId = null, Action<BlocksRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get Block Statistics

GET /blk/v1/blocks/{blockId}/statistics · chain-level

Task<BlockStatistics?> ctx.Ohip.Api.Blk.GetBlockStatisticsAsync(string blockId, string? hotelId = null, Action<StatisticsRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get Block statistics

GET /blk/v1/blocks/statistics · chain-level

Task<BlockStats?> ctx.Ohip.Api.Blk.GetBlockStatsAsync(string? hotelId = null, Action<StatisticsRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get Block Status Activity Log

GET /blk/v1/blocks/{blockId}/statusActivityLog · chain-level

Task<BlockStatusChanges?> ctx.Ohip.Api.Blk.GetBlockStatusChangesAsync(string blockId, string? hotelId = null, Date? changeEndDate = null, Date? changeStartDate = null, string[]? currentStatus = null, int? limit = null, int? offset = null, CancellationToken ct = default)

Get Block Wash Information

GET /blk/v1/blockWash · chain-level

Task<BlockWashInfo?> ctx.Ohip.Api.Blk.GetBlockWashInfoAsync(string? hotelId = null, string? blockId = null, string? blockIdType = null, bool? genericRoomType = null, CancellationToken ct = default)

Get Block Wash Schedule

GET /blk/v1/blocks/{blockId}/washSchedules · chain-level

Task<BlockWashSchedules?> ctx.Ohip.Api.Blk.GetBlockWashSchedulesAsync(string blockId, string? hotelId = null, CancellationToken ct = default)

Get Central Sales Hotels

GET /blk/v1/centralSalesHotels · chain-level

Task<HotelConfigDetails?> ctx.Ohip.Api.Blk.GetCentralSalesHotelsAsync(Action<CentralSalesHotelsRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get default Block Code

GET /blk/v1/defaultBlockCode · chain-level

Task<DefaultBlockCodeDetails?> ctx.Ohip.Api.Blk.GetDefaultBlockCodeAsync(string? hotelId = null, string? blockCodeTemplate = null, string? blockName = null, Date? startDate = null, CancellationToken ct = default)

Get inventory to Borrow

GET /blk/v1/inventoryToBorrow · chain-level

Task<InventoryToBorrowInfo?> ctx.Ohip.Api.Blk.GetInventoryToBorrowAsync(string? hotelId = null, Action<InventoryToBorrowRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get Next Block Status

GET /blk/v1/blocks/status · chain-level

Task<NextBlockStatus?> ctx.Ohip.Api.Blk.GetNextBlockStatusAsync(string? hotelId = null, string? currentStatus = null, bool? includeCateringStatus = null, CancellationToken ct = default)

Get recently accessed Blocks

GET /blk/v1/recentlyAccessedBlocks · chain-level

Task<RecentlyAccessedBlocks?> ctx.Ohip.Api.Blk.GetRecentlyAccessedBlocksAsync(CancellationToken ct = default)

Get Sales allowances

GET /blk/v1/salesAllowances · chain-level

Task<SalesAllowances?> ctx.Ohip.Api.Blk.GetSalesAllowancesAsync(double?[]? ceilingId = null, CancellationToken ct = default)

Get Traces By Date Range

GET /blk/v1/hotels/{hotelId}/tracesByDateRange · hotel-scoped

Task<TracesByDateRange?> ctx.Ohip.Api.Blk.GetTracesByDateRangeAsync(string? hotelId = null, Date? beginDate = null, string[]? department = null, Date? endDate = null, string[]? hotelIds = null, CancellationToken ct = default)

Ping the Block service

GET /blk/v1/services/blockExternal/status · chain-level

Task<OperaVersion?> ctx.Ohip.Api.Blk.PingBlockExternalServiceStatusAsync(CancellationToken ct = default)

This API retrieves the Block service version

GET /blk/v1/services/block/status · chain-level

Task<OperaVersion?> ctx.Ohip.Api.Blk.PingBlockServiceAsync(CancellationToken ct = default)

Retrieve/Ping Block stats service

GET /blk/v1/services/blockStats/status · chain-level

Task<OperaVersion?> ctx.Ohip.Api.Blk.PingBlockStatsServiceAsync(CancellationToken ct = default)

Create alternate dates for a Block

POST /blk/v1/blocks/{blockId}/alternateDates · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.PostAlternateDatesAsync(string blockId, BlockAlternateDates body, CancellationToken ct = default)

Create a Block

POST /blk/v1/hotels/{hotelId}/block · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PostBlockAsync(Block body, string? hotelId = null, CancellationToken ct = default)

Assign a Block owner

POST /blk/v1/blocks/{blockId}/owners · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.PostBlockOwnersAsync(string blockId, BlockOwnersToAssign body, CancellationToken ct = default)

Create Block posting master

POST /blk/v1/hotels/{hotelId}/blocks/{blockId}/postingMaster · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PostBlockPostingMasterAsync(string blockId, BlockPostingMaster body, string? hotelId = null, CancellationToken ct = default)

Create Block Restriction

POST /blk/v1/blocks/{blockId}/restrictions · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PostBlockRestrictionAsync(string blockId, BlockRestriction body, CancellationToken ct = default)

Validate Block

POST /blk/v1/blocks/actions/validate · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PostBlockValidateAsync(BlockValidate body, CancellationToken ct = default)

Create Block Wash Schedules

POST /blk/v1/blocks/{blockId}/washSchedules · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PostBlockWashSchedulesAsync(string blockId, BlockWashSchedulesInfo body, CancellationToken ct = default)

Cancel the Block

POST /blk/v1/hotels/{hotelId}/blocks/{blockId}/cancellations · hotel-scoped · deprecated

Task<Status?> ctx.Ohip.Api.Blk.PostCancelBlockAsync(string blockId, BlockToCancel body, string? hotelId = null, CancellationToken ct = default)

Copy a Block

POST /blk/v1/blocks/{sourceBlockId}/copy · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PostCopyBlockAsync(string sourceBlockId, BlockCopy body, CancellationToken ct = default)

Create default Block Code for Multiple blocks

POST /blk/v1/defaultBlockCode · chain-level

Task<BlockBasicInfos?> ctx.Ohip.Api.Blk.PostDefaultBlockCodeAsync(BlockBasicInfos body, CancellationToken ct = default)

Create Block Rooming List Reservations

POST /blk/v1/blocks/{blockId}/roomingList · chain-level

Task<RoomingListDetails?> ctx.Ohip.Api.Blk.PostRoomingListAsync(string blockId, RoomingList body, CancellationToken ct = default)

Create Sub allocation

POST /blk/v1/allocation · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PostSubAllocationAsync(SubAllocation body, CancellationToken ct = default)

Create a sub-Block

POST /blk/v1/hotels/{hotelId}/blocks/{blockId}/subBlocks · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PostSubBlockAsync(string blockId, SubBlock body, string? hotelId = null, CancellationToken ct = default)

Create a sub-Block

POST /blk/v1/hotels/{hotelId}/externalSystems/{externalSystemCode}/blocks/{blockExternalId}/subBlocks · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PostSubBlockByExtIdAsync(string externalSystemCode, string blockExternalId, SubBlock body, string? hotelId = null, CancellationToken ct = default)

Create a Block tour series

POST /blk/v1/blocks/{blockId}/tourSeries · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PostTourSeriesAsync(string blockId, TourSeries body, CancellationToken ct = default)

Change alternate dates for a Block

PUT /blk/v1/blocks/{blockId}/alternateDates · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.PutAlternateDatesAsync(string blockId, BlockAlternateDates body, CancellationToken ct = default)

Change a Block

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId} · hotel-scoped

Task<BlockChanged?> ctx.Ohip.Api.Blk.PutBlockAsync(string blockId, BlockToBeChanged body, string? hotelId = null, CancellationToken ct = default)

Set Block Exclusion information

PUT /blk/v1/blocks/{blockId}/blockAccessExclusion · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutBlockAccessExclusionAsync(string blockId, BlockAccessExclusion body, CancellationToken ct = default)

Set Block Allocation

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/allocation · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutBlockAllocationAsync(string blockId, Allocation body, string? hotelId = null, CancellationToken ct = default)

Set Block Allocation

PUT /blk/v1/hotels/{hotelId}/externalSystems/{externalSystemCode}/blocks/{blockExternalId}/allocation/roomTypes/{roomType} · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutBlockAllocationByExtIdAsync(string externalSystemCode, string blockExternalId, string roomType, Allocation body, string? hotelId = null, CancellationToken ct = default)

Set Block Allocation Range

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/allocationRange · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutBlockAllocationRangeAsync(string blockId, BlockAllocationRange body, string? hotelId = null, CancellationToken ct = default)

Set Block Allocation Range

PUT /blk/v1/hotels/{hotelId}/externalSystems/{externalSystemCode}/blocks/{blockExternalId}/allocationRange · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutBlockAllocationRangeByExtIdAsync(string externalSystemCode, string blockExternalId, BlockAllocationRange body, string? hotelId = null, CancellationToken ct = default)

Update Block Allocation Wash

PUT /blk/v1/blockWash · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutBlockAllocationWashAsync(BlockAllocationWash body, CancellationToken ct = default)

Change a Block

PUT /blk/v1/hotels/{hotelId}/externalSystems/{externalSystemCode}/blocks/{blockExternalId} · hotel-scoped

Task<BlockChanged?> ctx.Ohip.Api.Blk.PutBlockByExtIdAsync(string externalSystemCode, string blockExternalId, BlockToBeChanged body, string? hotelId = null, CancellationToken ct = default)

Block Cut Off

PUT /blk/v1/blocks/{blockId}/blockCutOff · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutBlockCutoffAsync(string blockId, BlockStatus body, CancellationToken ct = default)

Change Block owners

PUT /blk/v1/blocks/{blockId}/owners · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.PutBlockOwnersAsync(string blockId, BlockOwnersToChange body, CancellationToken ct = default)

Refreshes Block rates

PUT /blk/v1/blocks/{blockId}/rates · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutBlockRatesAsync(string blockId, BlockStatus body, CancellationToken ct = default)

Change Block reservations

PUT /blk/v1/blocks/{blockId}/reservations · chain-level

Task<ChangedBlockReservations?> ctx.Ohip.Api.Blk.PutBlockReservationsAsync(string blockId, BlockReservationsToChange body, CancellationToken ct = default)

Shifts the Block start date

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/shifts · hotel-scoped

Task<ShiftedBlock?> ctx.Ohip.Api.Blk.PutBlockShiftAsync(string blockId, BlockToShift body, string? hotelId = null, CancellationToken ct = default)

Change the Status of a Block

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/status · hotel-scoped

Task<ChangedBlockStatus?> ctx.Ohip.Api.Blk.PutBlockStatusAsync(string blockId, BlockStatusToChange body, string? hotelId = null, CancellationToken ct = default)

Change the Status of a Block

PUT /blk/v1/hotels/{hotelId}/externalSystems/{externalSystemCode}/blocks/{blockExternalId}/status · hotel-scoped

Task<ChangedBlockStatus?> ctx.Ohip.Api.Blk.PutBlockStatusByExtIdAsync(string externalSystemCode, string blockExternalId, BlockStatusToChange body, string? hotelId = null, CancellationToken ct = default)

Change Block status to Open

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/openStatus · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutBlockStatusToOpenAsync(string blockId, BlockStatus body, string? hotelId = null, CancellationToken ct = default)

Change Block Wash Schedules

PUT /blk/v1/blocks/{blockId}/washSchedules · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutBlockWashSchedulesAsync(string blockId, BlockWashSchedulesInfo body, CancellationToken ct = default)

Recalculate Catering Revenue

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/cateringRevenue · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutCateringRevenueAsync(string blockId, CateringRevenueToChange body, string? hotelId = null, CancellationToken ct = default)

Change Catering Status

PUT /blk/v1/caterings/{eventId}/cateringStatus · chain-level

Task<ChangedCateringStatus?> ctx.Ohip.Api.Blk.PutCateringStatusAsync(string eventId, CateringStatusToChange body, CancellationToken ct = default)

Clear-All Block Restrictions

PUT /blk/v1/blocks/{blockId}/restrictions · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutClearAllRestrictionsAsync(string blockId, AllRestrictions body, CancellationToken ct = default)

Set Contract Defaults

PUT /blk/v1/contractDefaults · chain-level · deprecated

Task<Status?> ctx.Ohip.Api.Blk.PutContractDefaultsAsync(BlockStatus body, CancellationToken ct = default)

Borrow Inventory

PUT /blk/v1/inventory · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutInventoryAsync(InventoryToBorrow body, CancellationToken ct = default)

Use this API to convert a regular block to a master block

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/regularToMasterBlock/{masterBlockCode} · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutRegularToMasterBlockAsync(string blockId, string masterBlockCode, string? hotelId = null, CancellationToken ct = default)

Convert a regular business block to a sub allocation under a master allocation in the same property.

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/regularToSubAllocation/{masterAllocationId} · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutRegularToSubAllocationAsync(string blockId, string masterAllocationId, string? hotelId = null, CancellationToken ct = default)

Convert a regular block to a sub tour or sub itinerary under a master tour or master itinerary.

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/regularToSubTour/tourHotels/{masterTourHotelId}/tours/{masterTourId} · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutRegularToSubTourAsync(string blockId, string masterTourHotelId, string masterTourId, string? hotelId = null, CancellationToken ct = default)

Return Borrowed Inventory

PUT /blk/v1/inventoryReleased · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutReleasedInventoryAsync(BorrowedInventoryToReturn body, CancellationToken ct = default)

Set room type order for a Block

PUT /blk/v1/blocks/{blockId}/roomTypeOrder · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutRoomTypeOrderAsync(string blockId, RoomTypeOrder body, CancellationToken ct = default)

Use this API to convert a sub block to a regular block

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/subBlockToRegular · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.PutSubBlockToRegularAsync(string blockId, string? hotelId = null, CancellationToken ct = default)

Validate Block tour series

PUT /blk/v1/blocks/{blockId}/tourSeries/validate · chain-level

Task<ValidateToursRS?> ctx.Ohip.Api.Blk.PutTourSeriesValidateAsync(string blockId, TourSeries body, CancellationToken ct = default)

Validate Block Code

PUT /blk/v1/blocks/{blockCode}/actions/validate · chain-level

Task<Status?> ctx.Ohip.Api.Blk.PutValidateBlockCodeAsync(string blockCode, BlockCodeToValidate body, CancellationToken ct = default)

Search Blocks

POST /blk/v1/blocks/searches · chain-level

Task<BlockSummaries?> ctx.Ohip.Api.Blk.SearchBlocksAsync(SearchBlocksRequest body, CancellationToken ct = default)

Set exchange interfaces for business block

PUT /blk/v1/hotels/{hotelId}/blocks/{blockId}/exchangeInterfaces · hotel-scoped

Task<Status?> ctx.Ohip.Api.Blk.SetBlockExchangeInterfacesAsync(string blockId, SetBlockExchangeInterfacesRequest body, string? hotelId = null, CancellationToken ct = default)