Forecast Static Rules
Create a new static rule
Changed onpost/v2/forecasts/static-rules
Request
- Base URLhttps://api.quinyx.com
- Auth
- OAuth 2Client credentialsToken URL/oauth/tokenScopesforecast:write
- or OAuth 2Client credentialsToken URL/oauth/tokenScopesforecast:create
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
externalUnitIdstring required
externalSectionIdstring
Request body
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
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:writewas added to the endpoint's security schemeOAuth2ClientCredentials - info
the security scope
forecast:createwas removed from the endpoint's security schemeOAuth2ClientCredentials
- info
- info
the security scope
forecast:writewas added to the endpoint's security schemeOAuth2ClientCredentials - info
the security scope
forecast:createwas removed from the endpoint's security schemeOAuth2ClientCredentials
- info