---
title: "Allows to patch the rates of multiple rate plans."
method: PATCH
path: "/rateplan/v0-nsfw/rates"
tags: ["Rate"]
---

# Allows to patch the rates of multiple rate plans.

`PATCH /rateplan/v0-nsfw/rates`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/rateplan/v0-nsfw/rates`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `rates.manage`, `admin`

Note that the specified PATCH operations are applied to each and every rate for the specified time range.
Here is the list of operations that are currently allowed:
- Add, replace and remove Price
- Add, replace and remove Restrictions<br>You must have this scope: 'rates.manage'.<br>For fine-grained clients, you must have this permission: 'core.rates.modify'.

## Query parameters

- `ratePlanIds` string[], required
- `from` string, required
- `to` string, required
- `weekDays` string[]

## Request body

- Operation[]
  - `value` unknown
  - `path` string, nullable
  - `op` string, nullable
  - `from` string, nullable

## Response `204`

Rate plans were successfully modified.

## 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-not-safe-for-work.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api-not-safe-for-work/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-rate-plan-api-not-safe-for-work/revisions/97dec9512a17?raw)
