Create forecast config

POST/api/v1/budgets/forecast/configs

Save a forecast configuration for reuse.

Operation ID: create_forecast_config_api_v1_budgets_forecast_configs_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

namestringrequired

Forecast configuration name.

methodForecastMethodEnumForecastMethodEnum

Forecasting method to use.

lookback_monthsinteger

Historical months to analyze.

forecast_monthsinteger

Months to forecast into future.

growth_rate_percentinteger

Annual growth rate adjustment (%).

use_seasonalityboolean

Apply seasonal adjustments.

notesstring

Configuration notes.

Responses

201Successful Response

successboolean
messagestring
codestring
dataForecastConfigResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject