> This page is optimized for agents. Use the linked Markdown pages and llms.txt indexes for related API content.

# PATCH AccommodationRateDates

> Updates one or multiple AccommodationRateDate entities for a specific accommodation.
>
> Each update can either set an absolute rate amount or apply an index-based adjustment (percentage or fixed amount increase/decrease) to the existing rate. All changes are recorded under a new version for audit purposes, enabling historical rate tracking. After updating the specified rate dates, derived rates that depend on the modified rate specifications are automatically scheduled for recalculation.

- Product: Accommodations
- Section: Rates
- Snapshot: Current
- Method: `PATCH`
- Path: `/api/accommodations/{accommodationId}/rate_dates/`

## Path parameters

### `accommodationId`

Type: `string`  
Required: yes  

## Request body

Required: yes  
Content types: `application/json`  

### AccommodationRateDatePatchRequestPayload2[]

Type: `AccommodationRateDatePatchRequestPayload2[]`  

#### AccommodationRateDatePatchRequestPayload2

Type: `AccommodationRateDatePatchRequestPayload2`  

##### `accommodationRateSpecification`

Type: `object`  
Required: yes  

###### `id`

Type: `number`  
Required: no  

##### `date`

Type: `string`  
Format: `Y-m-d`  
Required: yes  

##### `amount`

Type: `string`  
Required: yes  

##### `type`

Type: `string`  
Required: yes  
Allowed values: `index`, `overwrite`  

The type of update that should be performed (overwrite or index)

##### `method`

Type: `string`  
Required: no  
Allowed values: `absolute`, `percentage`  

The method that should be performed in case of indexing (absolute or percentage)

##### `adjustment`

Type: `string`  
Required: no  
Allowed values: `increase`, `decrease`  

The adjustment that should be performed in case of indexing (increase or decrease)

##### `rounding`

Type: `string`  
Required: no  
Allowed values: `rounding-two-decimals`, `rounding-one-decimal`, `rounding-whole`, `rounding-nearest-five`, `rounding-nearest-half`  

How the amount is rounded. Falls back to the organization rounding setting when omitted.

## Execute with TypeScript

Package: `@recranet/sdk`  

A TypeScript example is not available yet.

## Execute with curl

```bash
curl -X PATCH "https://app.recranet.com/api/accommodations/$ACCOMMODATIONID/rate_dates/" \
    -H "X-Api-Key: $RECRANET_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '[{"accommodationRateSpecification":{},"date":"<date>","amount":"<amount>","type":"index"}]'
```

## Responses

### Response `200`

Category: success  

Successful response

### Response `400`

Category: client-error  

Bad request

#### `application/json`

##### Example

```json
{
  "statusCode": 400,
  "description": "Bad request",
  "errors": [
    "Bad request"
  ]
}
```

##### Schema

###### object

Type: `object`  

## Related representations

- [Human documentation](/accommodations/rate-dates/methods/patch/)
- [TypeScript Markdown](/accommodations/rate-dates/methods/patch.md?lang=typescript)
- [curl Markdown](/accommodations/rate-dates/methods/patch.md?lang=curl)
- [site llms.txt](/llms.txt)
- [product llms.txt](/accommodations/llms.txt)
- [snapshot llms.txt](/accommodations/llms.txt)
