# reorder_oversell_rules

Reorder oversell rules by precedence for one or more unit type + channel groups
(first id = highest priority, wins on overlap). orderedIds must list exactly the
current rules for that group. Accepts an array of groups processed in parallel;
partial success is reported per item.

<!-- INPUT_BLOCK_START -->

## Input

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `reorders` | `ReorderOversellRulesGroup[]` | Yes | Reorder instructions, one per unit type + channel (1-100, processed in parallel) - [ReorderOversellRulesGroup](#reorderoversellrulesgroup) |

### ReorderOversellRulesGroup

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channel` | `OversellRuleChannel` | Yes | OTA channel whose rules are being reordered - [OversellRuleChannel](#oversellrulechannel) |
| `unitTypeId` | `string` | Yes | The ID of the unit type (multi-unit group) |
| `orderedIds` | `string[]` | Yes | All rule IDs for this unit type + channel in the desired precedence order — the first id becomes the highest priority (wins on overlap). Must list exactly the current rules. |

### OversellRuleChannel

| Value | Description |
| --- | --- |
| `BOOKING_COM` | Booking.com — the only OTA channel supported by oversell rules in v1 |

<!-- 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 -->
