---
title: "Update existing recurring period."
method: PATCH
path: "/api/v1/tariff-recurring-periods/{id}"
tags: ["Tariff Recurring Periods"]
---

# Update existing recurring period.

`PATCH /api/v1/tariff-recurring-periods/{id}`

Required scope: `tariffs:write`<br/>**Note: Once you are done with creating/updating tariffs and its components you have to call the `create-prices` endpoint to create the prices for the tariff.**

## Path parameters

- `id` integer, required

## Request body

- TariffRecurringPeriodUpdateRequestDto
  - `dayOfWeek` 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
  - `endDayOfWeek` 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
  - `startHour` integer, nullable — hour that the period starts at
  - `endHour` integer, nullable — hour that the period ends at
  - `price` number, nullable — price during the period

## Response `200`

Tariff recurring period that was updated

- TariffRecurringPeriod
  - `id` integer — id of the period
  - `tariffId` integer — id of the tariff
  - `dayOfWeek` 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY', required
  - `endDayOfWeek` 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
  - `start` integer — starting hour of the period
  - `end` integer — ending hour of the period
  - `price` number, required — price during the period

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

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