Availability blocks

Availability block allocation

Changed on

Returns allocation details for a specified availability block. The data is grouped by time unit and by the resource categories the block allocates against (categories the block does not touch are not included), with a summary provided for the entire block. Each resource category also exposes OccupancyAllocations – one entry per defined occupancy slot, or a single combined entry (PersonCount = 0) mirroring the aggregate allocation when there is no per-slot breakdown. It always contains at least one entry. Response size scales with the block's interval length (bounded by the environment's MaxAvailabilityBlockIntervalLength quota) multiplied by the number of resource categories and occupancy slots. Note this operation supports Portfolio Access Tokens.

post/api/connector/v1/availabilityBlocks/getAllocation

Request

  • Base URL: https://api.mews.com
  • URL: https://api.mews.com/api/connector/v1/availabilityBlocks/getAllocation
  • Auth: none declared

Request body

ClientTokenstring required

Token identifying the client application.

AccessTokenstring required

Access token of the client application.

Clientstring required

Name and version of the client application.

AvailabilityBlockIdstring uuid required

Unique identifier of the requested availability block.

Response

OK

TimeUnitStartsUtcstring[] required

Set of all time units covered by the time interval; expressed in UTC timezone ISO 8601 format.

Changes