link_items
Create typed relations between items: alternative (A or B), complement (A and B together), upgrade (B replaces A), duplicate (same item different site), same_seller. Supports single pair (from_id, to_id, relation) or bulk (pairs array).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | No | Array of pairs to link (for bulk mode) | |
| to_id | No | Second item ID (for single pair mode) | |
| reason | No | Why this change was made (shown to user in change history) | |
| from_id | No | First item ID (for single pair mode) | |
| relation | No | Type of relationship (for single pair mode) |