---
title: "Upserts hurdle rates for a specific property, unit group and time slice template"
method: PUT
path: "/rateplan/v0-nsfw/hurdle-rates"
tags: ["HurdleRates"]
---

# Upserts hurdle rates for a specific property, unit group and time slice template

`PUT /rateplan/v0-nsfw/hurdle-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/hurdle-rates`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `hurdle-rates.manage`, `setup.manage`, `admin`

Creates new hurdle rates or updates existing ones based on the date. Only affects the specific dates provided in the request, leaving other dates unchanged.
Maximum 730 hurdle rates allowed in a single request.<br>You must have at least one of these scopes: 'hurdle-rates.manage, setup.manage'.<br>For fine-grained clients, you must have this permission: 'core.hurdle_rates.modify'.

## Request body

- UpsertHurdleRatesRequestModel
  - `propertyId` string, required: The property id
  - `unitGroupId` string, required: The unit group id
  - `hurdleRates` HurdleRateModel[], required: the collection of hurdle rates used calculations.
    - `date` string, date, required
    - `amount` number, double, required
    - `delta` number, double, required
    - `ceiling` integer, required
    - `maxSolds` integer, required

## Response `200`

Returns the count of processed, created, and updated hurdle rates

- UpsertHurdleRatesResponseModel
  - `processed` integer: The number of items that have been processed.
  - `created` integer: The number of items that have been created.
  - `updated` integer: The number of items that have been updated.

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `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)
