Remove product option matches
delete_item_relationsDelete Item Relations
When to use: 잘못 맺힌 옵션↔기초상품 연결을 끊을 때(미매칭 상태로 되돌린다).
When NOT to use: 다른 기초상품으로 바꾸는 것뿐이라면 삭제 후 재생성하지 말고 update_item_relation 으로 덮어쓴다.
Limitations: body 는 ItemRelationProductSchema(= 옵션 식별 필드 6개) 리스트다 — mapped_items 는 넣지 않는다. brand_name·channel_name·product_id·option_id·product_name·option_name 이 모두 일치해야 지워지므로 search_item_relations 결과를 그대로 복사해 넘긴다. data_management:write 권한 필요. item_relation 스코프 감사 이벤트로 기록되므로 복원 가능하다.
Examples:
Q: 이 옵션에 연결된 기초상품을 연결 해제해줘 params: {'body': [{'brand_name': '브랜드A', 'channel_name': '스마트스토어', 'product_id': '1001', 'option_id': '1', 'product_name': '수분크림', 'option_name': '50ml 단품'}]}
Output shape: no content (성공 시 body 없음)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "delete_item_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| project-id | No | ||
| auth_method | No | jwt |