Изменить поартикульные настройки конкурентов (v2)
Changed onСохраняет изменения по артикулам, переданным в articles.
Фронт отправляет только изменённые артикулы (CompArticleSettingsPatchItemDTO). Бэкенд сравнивает с БД, пишет историю в sys.history_settings (tool = ozon_comp (web)). Поле tags сохраняется в sys.ozon_product_tag_links по той же логике, что PATCH /rrc/sku-settings.
Необязательным полем new_rrc_status можно включить или выключить по артикулу соседний инструмент РРЦ - только его статус, остальные настройки РРЦ остаются как есть. Включение доступно для артикула, уже настроенного в РРЦ, и расходует лимит тарифа; если условия не выполняются, ручка вернёт 400 и не сохранит ничего.
Request
- Base URL: https://api.mpspace.ru (the document declares no server; this is the origin it was published from)
- URL: https://api.mpspace.ru/v2/comp/products-settings
- Auth: none declared. Required headers: x-connect-id, x-user-id
Query parameters
Headers
ID магазина
ID пользователя
Request body
Example request
{
"articles": [
{
"product_id": 21356090,
"sku_sds": 170771792,
"offer_id": "Sh-1457",
"comps_strategy_status": 1,
"region": 77,
"comp_working_schedule": {
"MON": [
9,
10,
11,
17
],
"TUE": [
8,
9,
15,
16
],
"WED": [
12,
13,
14
],
"THU": [
1,
2,
3,
4,
13,
14,
15,
16
],
"FRI": [
8,
9,
15,
16,
17
],
"SAT": [
11,
12,
13,
14
],
"SUN": [
12,
13,
21,
22,
23
]
},
"rrc_working_schedule": {
"MON": [
9,
10,
11,
17
],
"TUE": [
8,
9,
15,
16
],
"WED": [
12,
13,
14
],
"THU": [
1,
2,
3,
4,
13,
14,
15,
16
],
"FRI": [
8,
9,
15,
16,
17
],
"SAT": [
11,
12,
13,
14
],
"SUN": [
12,
13,
21,
22,
23
]
},
"competitors": [
{
"comp_sku": 1738567991,
"competitor_status": 1,
"prices": {
"source": "history",
"base_price": 860,
"discount_price": 375,
"ozon_card_price": 350
}
}
],
"history": {
"current_green_price": 1250,
"current_grey_price": 1250,
"discount_ozon": 22.7,
"discount_card": 10.6,
"comment": "С ценой на сайте все отлично.",
"last_update": "2025.06.05 15:55:59",
"calculate_comps_price": 6849
},
"tags": [
5,
8,
13
]
}
]
}Response
Successful Response
Example response
{
"msg": "Successful PATCH /v2/comp/products-settings",
"data": {
"limit": 1000,
"total_products": 1250,
"total_archived_products": 42,
"total_filtered": 128,
"history_comment_options": [
{
"comment": "С ценой на сайте все отлично.",
"status": "info"
},
{
"comment": "Мин. цена селлера: установлена минимальная цена селлера X руб., при попытке установить Y.",
"status": "warning"
}
],
"slice_products": 42,
"settings": [
{
"product_id": 21356090,
"sku_sds": 170771792,
"offer_id": "Sh-1457",
"comps_strategy_status": 1,
"region": 77,
"comp_working_schedule": {
"MON": [
9,
10,
11,
17
],
"TUE": [
8,
9,
15,
16
],
"WED": [
12,
13,
14
],
"THU": [
1,
2,
3,
4,
13,
14,
15,
16
],
"FRI": [
8,
9,
15,
16,
17
],
"SAT": [
11,
12,
13,
14
],
"SUN": [
12,
13,
21,
22,
23
]
},
"rrc_working_schedule": {
"MON": [
9,
10,
11,
17
],
"TUE": [
8,
9,
15,
16
],
"WED": [
12,
13,
14
],
"THU": [
1,
2,
3,
4,
13,
14,
15,
16
],
"FRI": [
8,
9,
15,
16,
17
],
"SAT": [
11,
12,
13,
14
],
"SUN": [
12,
13,
21,
22,
23
]
},
"competitors": [
{
"comp_sku": 1738567991,
"competitor_status": 1,
"prices": {
"source": "history",
"base_price": 860,
"discount_price": 375,
"ozon_card_price": 350
}
}
],
"history": {
"current_green_price": 1250,
"current_grey_price": 1250,
"discount_ozon": 22.7,
"discount_card": 10.6,
"comment": "С ценой на сайте все отлично.",
"last_update": "2025.06.05 15:55:59",
"calculate_comps_price": 6849
},
"has_settings": 1,
"tags": [
5,
8,
13
]
}
],
"currency": "RUB"
}
}Changes
- breaking
response property
data/settings/items/comp_strat_lower_boundlist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
data/settings/items/competitor_out_of_stock_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
data/settings/items/low_stock_steps/items/final_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
data/settings/items/max_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
data/settings/items/min_pricelist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - breaking
response property
data/settings/items/price_deltalist-of-types was widened by adding typesnumberto media typeapplication/jsonof response200 - info
request property
//list-of-types was widened by adding typesnumberto media typeapplication/json - info
request property
//list-of-types was widened by adding typesnumberto media typeapplication/json - info
request property
////list-of-types was widened by adding typesnumberto media typeapplication/json - info
request property
//list-of-types was widened by adding typesnumberto media typeapplication/json - info
request property
//list-of-types was widened by adding typesnumberto media typeapplication/json - info
request property
//list-of-types was widened by adding typesnumberto media typeapplication/json - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking
- info
added the new optional request property
//
- info