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

name string required

Forecast configuration name.

method ForecastMethodEnum ForecastMethodEnum

Forecasting method to use.

lookback_months integer

Historical months to analyze.

forecast_months integer

Months to forecast into future.

growth_rate_percent integer

Annual growth rate adjustment (%).

use_seasonality boolean

Apply seasonal adjustments.

notes string

Configuration notes.

Responses

201 Successful Response

id string required

Config UUID.

name string required

Config name.

method ForecastMethodEnum requiredForecastMethodEnum

Forecasting method.

lookback_months integer required

Historical months analyzed.

forecast_months integer required

Months forecasted.

growth_rate_percent integer required

Growth rate adjustment.

use_seasonality boolean required

Seasonality enabled.

is_active boolean required

Whether config is active.

notes string

Notes.

business_id string required

Business UUID.

created_at string · date-time required

Creation timestamp.

updated_at string · date-time required

Last update timestamp.

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object