# update_oversell_rules

Update one or more oversell rules by id (name, enabled, maxOversell, span,
leadDays, pCancel, aversionZ, priority). Only supplied fields change. Accepts
an array processed in parallel; partial success is reported per item.

<!-- INPUT_BLOCK_START -->

## Input

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `oversellRules` | `UpdateOversellRuleItem[]` | Yes | Oversell rule updates to apply (1-100, processed in parallel) - [UpdateOversellRuleItem](#updateoversellruleitem) |

### UpdateOversellRuleItem

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The ID of the oversell rule to update |
| `name` | `string` | No | New label for the rule |
| `enabled` | `boolean` | No | Enable (true) or disable (false) the rule |
| `maxOversell` | `number` | No | New hard cap on the per-night oversell (0 = blackout) |
| `span` | `OversellRuleDateSpanInput` | No | New effective date window - [OversellRuleDateSpanInput](#oversellruledatespaninput) |
| `leadDays` | `OversellRuleLeadTimeWindowInput` | No | New lead-time window (days to arrival) - [OversellRuleLeadTimeWindowInput](#oversellruleleadtimewindowinput) |
| `pCancel` | `number \| null` | No | New per-booking cancellation probability. Pass null to clear; omit to leave unchanged. |
| `aversionZ` | `number \| null` | No | New aversion (std-dev discount). Pass null to clear; omit to leave unchanged. |
| `priority` | `number \| null` | No | New precedence value. Pass null to clear; omit to leave unchanged. |

### OversellRuleDateSpanInput

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | `string \| null` | No | Start of the window (inclusive), ISO8601 date. On updates, pass null to clear; omit to leave unchanged. |
| `to` | `string \| null` | No | End of the window (inclusive), ISO8601 date. On updates, pass null to clear; omit to leave unchanged. |

### OversellRuleLeadTimeWindowInput

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `min` | `number \| null` | No | Minimum days to arrival. On updates, pass null to clear; omit to leave unchanged. |
| `max` | `number \| null` | No | Maximum days to arrival. On updates, pass null to clear; omit to leave unchanged. |

<!-- INPUT_BLOCK_END -->

<!-- OUTPUT_BLOCK_START -->

## Output

| Field | Type | Description |
| --- | --- | --- |
| `content` | `ContentItem[]` | Array of content items returned by the tool - [ContentItem](#contentitem) |
| `isError` | `boolean` | Whether the tool execution resulted in an error |

### ContentItem

| Field | Type | Description |
| --- | --- | --- |
| `type` | `'text'` | Content type (currently only 'text' is supported) |
| `text` | `string` | The text content to display |

<!-- OUTPUT_BLOCK_END -->
