MCP Control
Склад · Чувствительное действие

Склад · Склады · Параметры · Изменение

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

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

Подготовить
  1. Вы указываетеОбъект
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Склад / Склады / Параметры / Изменение». Для изменения нужны версия, settings. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
version
Версия
settings
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Склад / Склады / Параметры / Изменение» с параметром settings.printerId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
settings.printerId
DEMO-101
settings.labelPrinterId
DEMO-101
settings.showCost
true
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Склад / Склады / Параметры / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

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

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

Update only the authenticated employee’s personal Storage preferences using the current version and complete settings returned by inventory_storage_preferences_get. The same native handler, version and printer-company checks as the interface apply. Selecting a printer does not print. Recover uncertainty with inventory_storage_preferences_get_update_result and the exact original arguments.

Параметры запроса
version
Native version value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
settings
Native settings value; use the value and type returned by the corresponding service. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
result
Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа inventory_storage_preferences_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native version value; use the value and type returned by the corresponding service."
    },
    "settings": {
      "type": "object",
      "properties": {
        "printerId": {
          "type": "string",
          "maxLength": 128,
          "description": "Native printerId value; use the value and type returned by the corresponding service."
        },
        "labelPrinterId": {
          "type": "string",
          "maxLength": 128,
          "description": "Native labelPrinterId value; use the value and type returned by the corresponding service."
        },
        "showCost": {
          "type": "boolean",
          "description": "Native showCost value; use the value and type returned by the corresponding service."
        },
        "showBarcode": {
          "type": "boolean",
          "description": "Native showBarcode value; use the value and type returned by the corresponding service."
        },
        "readability": {
          "type": "boolean",
          "description": "Native readability value; use the value and type returned by the corresponding service."
        },
        "copies": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "description": "Native copies value; use the value and type returned by the corresponding service."
        }
      },
      "required": [
        "printerId",
        "labelPrinterId",
        "showCost",
        "showBarcode",
        "readability",
        "copies"
      ],
      "additionalProperties": false,
      "description": "Native settings value; use the value and type returned by the corresponding service."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    }
  },
  "required": [
    "version",
    "settings",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native result value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}