Каталог · Чтение
Каталог · Товары · Проверка · ID · Изменение
catalog_products_inspect_id_change
Попробуйте три запроса
Получить данные
- Вы указываетеТовар
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Каталог / Товары / Проверка / ID / Изменение» выполни чтение по выбранной записи (товар). Выведи кратко: товар, версия записи.
- productId
- Товар
- revision
- Версия записи
- targetId
- Поле ответа
Задать параметры
- Вы указываетеТовар
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Каталог / Товары / Проверка / ID / Изменение» на учебном примере с productId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- productId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Каталог / Товары / Проверка / ID / Изменение» объясни товар, версия записи. Отметь отсутствующие значения.
- productId
- Товар
- revision
- Версия записи
- targetId
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Inspect a proposed native product ID change. Checks target availability, option sets, recommendations, price rules, banners, exceptions and registered URLs. The result covers these SQL catalog links only. Orders, stock, reviews, subscription contracts, Firestore and published Site versions need independent migration coverage. This inspection does not authorize a native rekey. For URL changes use values.public_id.
Параметры запроса
- productId
- Идентификатор найденного товара. обязательно по схеме · string · до символов 128
- targetId
- Proposed new native product ID to inspect. обязательно по схеме · string · до символов 80
Что вернёт команда
- productId
- Existing native product ID from catalog_products_get. обязательно по схеме · string · до символов 128
- revision
- Exact revision returned by this entity get action. A stale revision fails without overwriting a newer edit. Read again and obtain user agreement before changing a conflicting edit. обязательно по схеме · string
- targetId
- Proposed new native product ID to inspect. обязательно по схеме · string · до символов 80
- targetAvailable
- No current native ID or reserved product URL conflicts with the target at inspection time. обязательно по схеме · boolean
- catalogReferences
- Presence of direct catalog references within the active company. обязательно по схеме · object
- coverage
- This result covers only the listed direct SQL catalog references. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"productId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Existing native product ID from catalog_products_get."
},
"targetId": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"description": "Proposed new native product ID to inspect."
}
},
"required": [
"productId",
"targetId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"productId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Existing native product ID from catalog_products_get."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Exact revision returned by this entity get action. A stale revision fails without overwriting a newer edit. Read again and obtain user agreement before changing a conflicting edit."
},
"targetId": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"description": "Proposed new native product ID to inspect."
},
"targetAvailable": {
"type": "boolean",
"description": "No current native ID or reserved product URL conflicts with the target at inspection time."
},
"catalogReferences": {
"type": "object",
"properties": {
"optionSets": {
"type": "boolean",
"description": "At least one company option set references this native product."
},
"recommendations": {
"type": "boolean",
"description": "At least one company recommendation references this native product."
},
"priceRules": {
"type": "boolean",
"description": "At least one company price rule references this native product."
},
"banners": {
"type": "boolean",
"description": "At least one company banner references this native product."
},
"exceptions": {
"type": "boolean",
"description": "At least one company exception references this native product."
},
"registeredUrls": {
"type": "boolean",
"description": "At least one company registered product URL references this native product."
}
},
"required": [
"optionSets",
"recommendations",
"priceRules",
"banners",
"exceptions",
"registeredUrls"
],
"additionalProperties": false,
"description": "Presence of direct catalog references within the active company."
},
"coverage": {
"type": "string",
"const": "sql_catalog_only",
"description": "This result covers only the listed direct SQL catalog references."
}
},
"required": [
"productId",
"revision",
"targetId",
"targetAvailable",
"catalogReferences",
"coverage"
],
"additionalProperties": false
}