MCP Control
Компания и доступ · Изменение

Каталог · Исключения · Сохранение · Конфигурация

catalog_exceptions_save_configuration
Папки документов

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

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

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

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

Create the first or replace an existing company-wide exception configuration atomically, with latest-revision protection. Default replace mode uses native defaults and full list replacement. Explicit patch mode preserves omitted fields on an existing key/revision; supplied arrays still replace the whole list. Acknowledgments are bounded first pages with full counts/hashes; unrelated fields and other legacy rows are preserved. The server validates references, refreshes the existing native cache marker, and records a retry receipt. Multiple legacy rows require an explicit selection. No Flow, provider or catalog item is executed or changed.

Параметры запроса
key
Канонический ключ записи из результата чтения. необязательно · object
revision
Текущая версия выбранной записи. обязательно по схеме · string / null
configurationMode
replace uses native defaults and replaces both lists. patch changes only explicitly supplied fields on an existing key/revision, preserving omitted lists without downloading or resubmitting them. обязательно по схеме · string · по умолчанию "replace" · варианты replace, patch
configuration
In replace mode omitted fields become enabled=true and empty lists. In patch mode omitted fields are preserved. Explicit arrays always replace the complete corresponding list. Compact native request values must not exceed 900 KiB. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
key
Canonical configuration identifier. Company identity is server-resolved. обязательно по схеме · object
revision
Current revision at this snapshot or historical save acknowledgment. обязательно по схеме · string
configuration
Native catalog-cleaned exception configuration; no client runtime or complete catalog download is required. обязательно по схеме · object
configurationHash
Digest of the entire effective configuration, not only this page. обязательно по схеме · string
pagination
Counts and hashes cover each complete effective list. Save/recovery acknowledgments always contain the first page with limit=100; get_configuration reads subsequent revision/hash-bound pages. обязательно по схеме · object
updatedAt
Native server update timestamp, or null for legacy records without one. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа catalog_exceptions_save_configuration
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "description": "Existing selected configuration key, especially for legacy duplicate company rows. Omit for implicit zero-or-one selection; a supplied missing key never inserts a replacement.",
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/_mcp0"
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "revision": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{32}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Latest revision from get_configuration. Use null only when get_configuration reports absent. Existing configurations always require their current revision."
    },
    "configurationMode": {
      "default": "replace",
      "description": "replace uses native defaults and replaces both lists. patch changes only explicitly supplied fields on an existing key/revision, preserving omitted lists without downloading or resubmitting them.",
      "type": "string",
      "enum": [
        "replace",
        "patch"
      ]
    },
    "configuration": {
      "type": "object",
      "properties": {
        "enabled": {
          "description": "Explicit enabled value; omitted is preserved in patch mode.",
          "type": "boolean"
        },
        "productIds": {
          "description": "Complete product list replacement when supplied, including an explicit empty list.",
          "maxItems": 10000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/_mcp0"
          }
        },
        "categoryIds": {
          "description": "Complete category list replacement when supplied, including an explicit empty list.",
          "maxItems": 10000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/_mcp0"
          }
        }
      },
      "additionalProperties": false,
      "description": "In replace mode omitted fields become enabled=true and empty lists. In patch mode omitted fields are preserved. Explicit arrays always replace the complete corresponding list. Compact native request values must not exceed 900 KiB."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable identifier for this exact save. Preserve all arguments, including revision, for retries and result recovery."
    }
  },
  "required": [
    "revision",
    "configurationMode",
    "configuration",
    "requestId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical existing business identifier; never a label or proof of company access."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/_mcp0"
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false,
      "description": "Canonical configuration identifier. Company identity is server-resolved."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "description": "Current revision at this snapshot or historical save acknowledgment."
    },
    "configuration": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Native available value; a stored null is projected as true."
        },
        "productIds": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/_mcp0"
          },
          "description": "This page of effective product references. Follow pagination to read every reference; this page is not a complete replacement list unless productCount fits it."
        },
        "categoryIds": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/_mcp0"
          },
          "description": "This page of effective category references; stored lists are never rewritten during reads."
        }
      },
      "required": [
        "enabled",
        "productIds",
        "categoryIds"
      ],
      "additionalProperties": false,
      "description": "Native catalog-cleaned exception configuration; no client runtime or complete catalog download is required."
    },
    "configurationHash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Digest of the entire effective configuration, not only this page."
    },
    "pagination": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "description": "Maximum references included per list in this page."
        },
        "productOffset": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000,
          "description": "Zero-based offset of the returned product page."
        },
        "categoryOffset": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000,
          "description": "Zero-based offset of the returned category page."
        },
        "productCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000,
          "description": "Total effective product references in the entire snapshot, including duplicates."
        },
        "categoryCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000,
          "description": "Total effective category references in the entire snapshot, including duplicates."
        },
        "productHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "SHA-256 of the entire ordered effective product identifier list, including duplicates."
        },
        "categoryHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "description": "SHA-256 of the entire ordered effective category identifier list, including duplicates."
        },
        "nextProductOffset": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            {
              "type": "null"
            }
          ],
          "description": "Offset for the next product page, or null when complete."
        },
        "nextCategoryOffset": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            {
              "type": "null"
            }
          ],
          "description": "Offset for the next category page, or null when complete."
        }
      },
      "required": [
        "limit",
        "productOffset",
        "categoryOffset",
        "productCount",
        "categoryCount",
        "productHash",
        "categoryHash",
        "nextProductOffset",
        "nextCategoryOffset"
      ],
      "additionalProperties": false,
      "description": "Counts and hashes cover each complete effective list. Save/recovery acknowledgments always contain the first page with limit=100; get_configuration reads subsequent revision/hash-bound pages."
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Native server update timestamp, or null for legacy records without one."
    }
  },
  "required": [
    "key",
    "revision",
    "configuration",
    "configurationHash",
    "pagination",
    "updatedAt"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical existing business identifier; never a label or proof of company access."
    }
  }
}