Forecast Dynamic Rules
Create a new dynamic rule
Changed onpost/v2/forecasts/dynamic-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
External Group Id
externalSectionIdstring
External Section Id
Request body
Example request
{
"forecastExternalVariableId": "EXTERNAL_VAR",
"amount": 100,
"startTime": "12:00",
"endTime": "13:00",
"shiftTypes": [
{
"externalShiftTypeId": "EXTERNAL_SHIFT_ID",
"amount": 10
}
]
}Response
Success
Example response
{
"forecastExternalVariableId": "EXTERNAL_VAR",
"amount": 100,
"startTime": "12:00",
"endTime": "13:00",
"shiftTypes": [
{
"externalShiftTypeId": "EXTERNAL_SHIFT_ID",
"amount": 10
}
]
}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