Forecast Static Rules

Create a new static rule

Changed on
post/v2/forecasts/static-rules

Request

Query parameters

externalUnitIdstring required
externalSectionIdstring

Request body

weekdaysinteger[] required
repeatPeriodinteger required
startTimestring required
endTimestring required
startDatestring date required
endDatestring date
commentstring

Example request

{
  "repeatPeriod": 1,
  "shiftType": {
    "externalShiftTypeId": "EXTERNAL_SHIFT_ID",
    "amount": 10
  },
  "startTime": "12:00",
  "endTime": "13:00",
  "startDate": "2022-01-13",
  "endDate": "2022-02-20",
  "comment": "Holiday closure"
}

Response

Success

weekdaysinteger[] required
repeatPeriodinteger required
startTimestring required
endTimestring required
startDatestring date required
endDatestring date
commentstring

Example response

{
  "repeatPeriod": 1,
  "shiftType": {
    "externalShiftTypeId": "EXTERNAL_SHIFT_ID",
    "amount": 10
  },
  "startTime": "12:00",
  "endTime": "13:00",
  "startDate": "2022-01-13",
  "endDate": "2022-02-20",
  "comment": "Holiday closure"
}

Changes

    • info

      the security scope forecast:write was added to the endpoint's security scheme OAuth2ClientCredentials

    • info

      the security scope forecast:create was removed from the endpoint's security scheme OAuth2ClientCredentials

    • info

      the security scope forecast:write was added to the endpoint's security scheme OAuth2ClientCredentials

    • info

      the security scope forecast:create was removed from the endpoint's security scheme OAuth2ClientCredentials