# Bulk update the preferences of a set of listings.

`PUT /preferences`

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

## Request

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

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).

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

JSON object with a listing preferences array. Each element must include `listing_id` (integration listing /
property id) and may include any fields for preferences to update.

- `listing_preferences` (array of object, required)
  - `listing_id` (string, required): The integration partner's unique listing identifier (property id).
  - Plus every field of [`listing_preference_request`](https://docs.usewheelhouse.com/pro/reference/schemas/listing_preference_request.md).

### Example request

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

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

## Responses

### 200

Successfully updated the preferences for all listings

Body (`application/json`): object

- `updated_preferences` (array of object `listing_preference_response`, required)
  - 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
{
  "updated_preferences": [
    {
      "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"
    }
  ]
}
```

### 207

Partial success updating preferences

Body (`application/json`): object

- `updated_preferences` (array of object `listing_preference_response`, required)
  - Fields: see [`listing_preference_response`](https://docs.usewheelhouse.com/pro/reference/schemas/listing_preference_response.md).
- `errors` (array of array of string | integer, required, each item min items: 3, max items: 3)
  - Fields: see `preference_error` under Schemas.

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

```json
{
  "updated_preferences": [
    {
      "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"
    }
  ],
  "errors": [
    [
      "12345",
      "You do not have permission to access listing 12345",
      403
    ]
  ]
}
```

### 409

Another request is already in progress for one or more listings. Retry after the concurrent request completes.

### 424

No listing preferences were updated; all failed

Body (`application/json`): object

- `updated_preferences` (array of object `listing_preference_response`, required): Always empty.
  - Fields: see [`listing_preference_response`](https://docs.usewheelhouse.com/pro/reference/schemas/listing_preference_response.md).
- `errors` (array of array of string | integer, required, each item min items: 3, max items: 3)
  - Fields: see `preference_error` under Schemas.

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

```json
{
  "updated_preferences": [
    {
      "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"
    }
  ],
  "errors": [
    [
      "12345",
      "You do not have permission to access listing 12345",
      403
    ]
  ]
}
```

## Schemas

Shared by more than one field above.

### `preference_error`

Type: array of string | integer

One listing that failed, as a `[listing_id, error_message, status_code]` array. `listing_id` is the integration partner's unique listing identifier and `status_code` the HTTP status code applicable to the error.
