# Update the preferences of a listing.

`PUT /preferences/{id}`

> Wheelhouse Pro API. Web version: https://docs.usewheelhouse.com/pro/reference/set-preferences · OpenAPI spec: https://docs.usewheelhouse.com/pro/openapi.yaml · Operation ID: `setPreferences` · Tag: Listing Preferences · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

Note that this endpoint is `experimental` and might change in the future! This endpoint can
be used to change custom preferences of the Wheelhouse recommendation engine.

All fields in the body are optional; only provided fields are updated.

## Request

`PUT https://api.usewheelhouse.com/ss_api/v1/preferences/{id}`

Authentication: send your integration API key in the `X-Integration-API-Key` header and your user API key in the `X-User-API-Key` header (see https://docs.usewheelhouse.com/pro/authentication.md).

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The integration partner's unique listing identifier. |

### Request body (`application/json`, required)

Preference fields to update.

Fields: see [`listing_preference_request`](https://docs.usewheelhouse.com/pro/reference/schemas/listing_preference_request.md).

### Example request

**Change scalar settings**

```bash
curl -X PUT 'https://api.usewheelhouse.com/ss_api/v1/preferences/{id}' \
  -H 'X-Integration-API-Key: <your integration API key>' \
  -H 'X-User-API-Key: <your user API key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "base_price": 220,
  "weekly_discount": 10,
  "monthly_discount": 25,
  "last_minute_discount": {
    "type": "AGG"
  }
}'
```

**Replace all minimum price rules**

```bash
curl -X PUT 'https://api.usewheelhouse.com/ss_api/v1/preferences/{id}' \
  -H 'X-Integration-API-Key: <your integration API key>' \
  -H 'X-User-API-Key: <your user API key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "minimum_price_rules": [
    {
      "type": "global",
      "value": 120
    },
    {
      "type": "custom",
      "start_date": "2027-07-01",
      "end_date": "2027-07-05",
      "value": 300
    }
  ]
}'
```

Path and query parameters are placeholders. The body is a complete example; replace its values with your own.

## Responses

### 200

Successfully updated listing preferences

Body (`application/json`): object `listing_preference_response`

Fields: see [`listing_preference_response`](https://docs.usewheelhouse.com/pro/reference/schemas/listing_preference_response.md).

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "listing_id": 0,
  "partner_listing_id": "string",
  "currency": "string",
  "automatic_rate_posting_enabled": true,
  "base_price": 0,
  "base_price_adjustment": 0,
  "monthly_discount": 0,
  "weekly_discount": 0,
  "nickname": "string",
  "last_minute_discount": {
    "type": "CON",
    "rules": [
      {
        "type": "adjacency",
        "adjustment": 0,
        "day_of_week_adjustments": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "days_adjacent": 0,
        "priority": 0,
        "day_of_week_values": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "value": 0
      }
    ],
    "smooth": false
  },
  "far_future_premium": {
    "type": "CON",
    "rules": [
      {
        "type": "adjacency",
        "adjustment": 0,
        "day_of_week_adjustments": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "days_adjacent": 0,
        "priority": 0,
        "day_of_week_values": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "value": 0
      }
    ],
    "smooth": false
  },
  "seasonality_adjustment": {
    "type": "CON",
    "rules": [
      {
        "type": "adjacency",
        "adjustment": 0,
        "day_of_week_adjustments": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "days_adjacent": 0,
        "priority": 0,
        "day_of_week_values": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "value": 0
      }
    ],
    "smooth": false
  },
  "day_of_week": {
    "type": "CON",
    "rules": [
      {
        "type": "adjacency",
        "adjustment": 0,
        "day_of_week_adjustments": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "days_adjacent": 0,
        "priority": 0,
        "day_of_week_values": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "value": 0
      }
    ]
  },
  "gap_night": {
    "custom": [
      {
        "adjacent": "left",
        "adjustment": 0,
        "day_of_week": [
          0
        ],
        "gap": 0
      }
    ],
    "type": "AGG"
  },
  "minimum_stay_rules_v3": [],
  "min_stays_enabled": true,
  "minimum_price_rules_v3": [],
  "maximum_price_rules_v3": [],
  "checkin_checkout": {
    "active": true,
    "auto_adjust": true,
    "check_in_rules": [
      {
        "type": "adjacency",
        "adjustment": 0,
        "day_of_week_adjustments": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "days_adjacent": 0,
        "priority": 0,
        "day_of_week_values": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "value": 0
      }
    ],
    "check_out_rules": [
      {
        "type": "adjacency",
        "adjustment": 0,
        "day_of_week_adjustments": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "days_adjacent": 0,
        "priority": 0,
        "day_of_week_values": [
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "value": 0
      }
    ]
  },
  "long_term_discounts": {
    "active": false,
    "weekly_rules": [],
    "monthly_rules": [],
    "rules": {}
  },
  "occupancy_pacing": {},
  "fee_adjustments": {
    "total_fee_percentage": 0,
    "auto_update": true
  },
  "demand_sensitivity_rules": [],
  "historical_anchoring_price_source": "observed",
  "historical_anchoring_mode": "blended",
  "historical_anchoring_rules": [],
  "custom_date_ranges": [],
  "min_min_price": 0,
  "min_min_stay": 0,
  "update_from": "string",
  "update_from_id": 0,
  "apply_gap_night_rules_to_overrides": true,
  "supported_settings": {
    "checkin_checkout": true,
    "min_stays": true,
    "long_term_discounts": true,
    "long_term_discount_type": "disabled"
  },
  "warnings": [
    {
      "setting": "checkin_checkout",
      "reason": "not_supported_by_channel",
      "message": "string",
      "attributes": [
        "string"
      ]
    }
  ],
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z"
}
```

### 400

A setting in the request has the wrong shape; the message names the field.

### 401

API key authorization failed

### 403

Listing authorization failed

### 404

Listing not found

### 409

Another request is already in progress for this listing. Retry after the concurrent request completes.

### 423

Listing preferences not yet initialized. Retry after a brief delay.
