---
title: "Update a static rule"
method: PUT
path: "/v2/forecasts/static-rules"
tags: ["Forecast Static Rules"]
---

# Update a static rule

`PUT /v2/forecasts/static-rules`

## Query parameters

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

## Request body

- ForecastDataIngestionExternalStaticRule
  - `weekdays` integer[], required
  - `repeatPeriod` integer, required
  - `shiftType` ForecastDataIngestionExternalShiftType, required
    - `externalShiftTypeId` string, required
    - `amount` integer, required
  - `startTime` string, required
  - `endTime` string, required
  - `startDate` string, date, required
  - `endDate` string, date
  - `comment` string

## Response `200`

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)
