# Update the basic preferences of a listing.

`PUT /preferences/{id}/{setting}`

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

This endpoint can be used to change basic preferences of the Wheelhouse recommendation
engine. For each setting you can choose between a conservative (CON), recommended (REC), or
aggressive (AGG) setting. `weekend_factor` is deprecated; use `day_of_week`.

## Request

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

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. |
| `setting` | string | yes | The setting you want to change. (one of: `base_price_adjustment`, `day_of_week`, `weekend_factor`, `seasonality_adjustment`, `last_minute_discount`, `far_future_premium`) |

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

- `type` (string, required, one of: `CON`, `REC`, `AGG`): Setting to be applied.

### Example request

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

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

## Responses

### 204

Successfully updated the preference

### 400

Invalid type provided

### 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 is still being created and is locked to updating via API
