---
title: "Allows to patch multiple rates of a single rate plan."
method: PATCH
path: "/rateplan/v1/rate-plans/{id}/rates"
tags: ["Rate"]
---

# Allows to patch multiple rates of a single rate plan.

`PATCH /rateplan/v1/rate-plans/{id}/rates`

Note that the specified PATCH operations are applied to each and every rate for the specified time ranges.
Here is the list of operations that are currently allowed:
- Add, replace and remove Price
- Add, replace and remove Restrictions
Derived rate plans can only have restrictions patched. Requests that include price operations are rejected because prices are inherited from the base rate plan.<br>You must have this scope: 'rates.manage'.

## Path parameters

- `id` string, required

## Request body

- RatesPatchRequestModel
  - `rates` RatePatchModel[], nullable
    - `from` string, required — The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
    - `to` string, required — The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
    - `weekDays` string[], nullable — The weekdays that will be patched. If not specified, all weekdays will be patched.
    - `operations` Operation[]
      - `value` unknown
      - `path` string, nullable
      - `op` string, nullable
      - `from` string, nullable

## Response `204`

Replace the rates was successful.

## Other responses

- `400` — Bad request.
- `401` — You are unauthorized.
- `403` — Forbidden.
- `404` — No rates found to replace.
- `415` — Unsupported media type.
- `422` — Validation errors in the request body or query params.
- `499` — Client closed request.
- `500` — An unexpected error occurred.
- `503` — The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api.md) · [All operations](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apaleo/apaleo-rate-plan-api/revisions/8674f5ed9dc7/schema)
