MCP Control
Склад · Изменение

Поставщики · Товары · Изменение

supplier_products_update
Посылки на упаковочном столе

Попробуйте три запроса

Подготовить
  1. Вы указываетеКлюч записи
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Поставщики / Товары / Изменение». Для изменения нужны ключ записи, версия записи. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
key
Ключ записи
revision
Версия записи
values
Изменяемые поля
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Поставщики / Товары / Изменение» с параметром values.name = Осенняя коллекция. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
values.name
Осенняя коллекция
values.comment
Проверено на учебной записи
values.currency
USD
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Поставщики / Товары / Изменение» по исходному ответу. Покажи ключ записи, версия записи. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Update selected fields of supplier products. Requires its latest revision and access to every location attached to it. No direct writes to workflow-owned records are supported by this action. After a lost or unrecognized response, use supplier_products_get_update_result with the exact original arguments to check the saved result without repeating the change.

Параметры запроса
key
Канонический ключ записи из результата чтения. обязательно по схеме · object
revision
Текущая версия выбранной записи. обязательно по схеме · string
values
Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
key
Canonical business identifier. Company identity is always supplied by authentication. обязательно по схеме · object
revision
Current revision; pass it unchanged to update or delete. обязательно по схеме · string
values
Authorized native entity fields, with credentials and internal service data excluded. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа supplier_products_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 500000,
          "description": "Canonical supplier products identifier from supplier_products_list. Copy the exact identifier; it is not a name or display number."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false,
      "description": "Canonical identifier returned by list or 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."
    },
    "values": {
      "type": "object",
      "properties": {
        "name": {
          "description": "name in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "sku": {
          "description": "sku in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "barcode": {
          "description": "barcode in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "price": {
          "description": "price in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "type": [
            "number",
            "null"
          ]
        },
        "shelflife": {
          "description": "shelflife in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "photo": {
          "description": "photo in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "maxItems": 500,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 100000
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "certificates": {
          "description": "certificates in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "maxItems": 500,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 100000
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "supplier": {
          "description": "supplier in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "comment": {
          "description": "comment in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "currency": {
          "description": "currency in supplier products. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "description": "Only the fields to change; omitted fields and unrelated settings remain untouched."
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable identifier for this exact change. Use the same requestId and arguments for retries. Never create a new request ID to bypass a conflict or pending confirmation."
    }
  },
  "required": [
    "key",
    "revision",
    "values",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 500000,
          "description": "Canonical supplier products identifier from supplier_products_list. Copy the exact identifier; it is not a name or display number."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false,
      "description": "Canonical business identifier. Company identity is always supplied by authentication."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "description": "Current revision; pass it unchanged to update or delete."
    },
    "values": {
      "type": "object",
      "properties": {
        "id": {
          "description": "id in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "description": "created at in supplier products. Use an ISO timestamp with Z or an explicit UTC offset.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "description": "name in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "sku": {
          "description": "sku in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "barcode": {
          "description": "barcode in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "price": {
          "description": "price in supplier products.",
          "type": [
            "number",
            "null"
          ]
        },
        "shelflife": {
          "description": "shelflife in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "photo": {
          "description": "photo in supplier products.",
          "anyOf": [
            {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 500000
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "certificates": {
          "description": "certificates in supplier products.",
          "anyOf": [
            {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 500000
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "supplier": {
          "description": "supplier in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "company": {
          "description": "company in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "comment": {
          "description": "comment in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "currency": {
          "description": "currency in supplier products.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "description": "Authorized native entity fields, with credentials and internal service data excluded."
    }
  },
  "required": [
    "key",
    "revision",
    "values"
  ],
  "additionalProperties": false
}