---
title: "Create a new dynamic rule"
method: POST
path: "/v2/forecasts/dynamic-rules"
tags: ["Forecast Dynamic Rules"]
---

# Create a new dynamic rule

`POST /v2/forecasts/dynamic-rules`

## Query parameters

- `externalUnitId` string, required
- `externalSectionId` string

## Request body

- ForecastDataIngestionExternalDynamicRule
  - `forecastExternalVariableId` string, required
  - `amount` integer, required
  - `weekdays` integer[], required
  - `startTime` string, required
  - `endTime` string, required
  - `shiftTypes` ForecastDataIngestionExternalShiftType[], required
    - `externalShiftTypeId` string, required
    - `amount` integer, required

## Response `201`

Success

## Other responses

- `403` — Forbidden to perform this action

---

[API](https://skmtc.net/quinyx/apis/quinyx-api.md) · [All operations](https://skmtc.net/quinyx/apis/quinyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quinyx/quinyx-api/revisions/70a12bbb88c9/schema)
