Availability adjustments

Get all availability adjustments

Returns all availability adjustments. Note this operation uses Pagination and supports Portfolio Access Tokens.

Request

[PlatformAddress]/api/connector/v1/availabilityAdjustments/getAll

{
    "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
    "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
    "Client": "Sample Client 1.0.0",
    "EnterpriseIds": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "4d0201db-36f5-428b-8d11-4f0a65e960cc"
    ],
    "AvailabilityAdjustmentIds": [
        "e19297af-373e-4701-b4ea-afae0129bded",
        "7413724a-6c48-46d4-ab3a-afae01280999"
    ],
    "UpdatedUtc": {
        "StartUtc": "2023-02-18T18:00:10.155Z",
        "EndUtc": "2023-02-20T18:00:10.155Z"
    },
    "ActivityStates": [ 
        "Active", 
        "Deleted"
    ],
    "Limitation": {
        "Count": 10
    }
}
PropertyTypeContractDescription

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

EnterpriseIds

array of string

optional, max 1000 items

Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.

AvailabilityAdjustmentIds

string

optional, max 1000 items

Unique identifiers of the requested Availability adjustments.

UpdatedUtc

optional, max length 3 months

Interval in which the Availability adjustments were updated.

ActivityStates

array of string Activity state

optional

Whether to return only active, only deleted or both records.

Limitation

required

Limitation on the quantity of data returned.

Response

{
    "AvailabilityAdjustments": [
        {
            "Id": "e19297af-373e-4701-b4ea-afae0129bded",
            "AvailabilityBlockId": "12806ae8-9c15-44c7-9a44-afae01289928",
            "ResourceCategoryId": "e6a2457d-f82c-4597-90f9-afa900d0d17d",
            "FirstTimeUnitStartUtc": "2023-02-21T23:00:00Z",
            "LastTimeUnitStartUtc": "2023-02-21T23:00:00Z",
            "UnitCount": -3,
            "ActivityState": "Active",
            "UpdatedUtc": "2023-02-28T23:00:00Z"
        },
        {
            "Id": "7413724a-6c48-46d4-ab3a-afae01280999",
            "AvailabilityBlockId": null,
            "ResourceCategoryId": "e6a2457d-f82c-4597-90f9-afa900d0d17d",
            "FirstTimeUnitStartUtc": "2023-02-19T23:00:00Z",
            "LastTimeUnitStartUtc": "2023-02-23T23:00:00Z",
            "UnitCount": 5,
            "ActivityState": "Deleted",
            "UpdatedUtc": "2023-02-28T23:00:00Z"
        }
    ],
    "Cursor": "7413724a-6c48-46d4-ab3a-afae01280999"
}
PropertyTypeContractDescription

AvailabilityAdjustments

required

Availability adjustments.

Cursor

string

optional

Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.

Availability adjustment

PropertyTypeContractDescription

Id

string

required

Unique identifier of the Availability adjustment.

AvailabilityBlockId

string

optional

Unique identifier of the Availability block which the availability adjustment belongs to.

ResourceCategoryId

string

required

Unique identifier of the Resource category whose availability is updated.

FirstTimeUnitStartUtc

string

required

Start of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format.

LastTimeUnitStartUtc

string

required

End of the time interval, expressed as the timestamp for the start of the last time unit, in UTC timezone ISO 8601 format.

UnitCount

int

required

Adjustment value applied on the interval.

ActivityState

required

Shows whether the availability adjustment is active or deleted.

UpdatedUtc

string

required

Last update date and time of the adjustment in UTC timezone in ISO 8601 format.

Last updated