MCP Control
Валет-паркинг · Изменение

Валет-паркинг · Карты · Изменение

valet_maps_update
Часы и календарь у стойки записи

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

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

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

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

Save the full native parking map with a revision check.

Параметры запроса
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
zoneId
Native parking Zone ID from the establishment map. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · максимум 9007199254740991
map
Native map value; use the value and type returned by the corresponding service. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
id
Native id value; use the value and type returned by the corresponding service. обязательно по схеме · string
revision
Native revision value; use the value and type returned by the corresponding service. обязательно по схеме · integer · максимум 9007199254740991
values
Verified business fields only. Credentials, private storage paths and native receipts are excluded. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа valet_maps_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "locationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing company establishment ID."
    },
    "zoneId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native parking Zone ID from the establishment map."
    },
    "expectedRevision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Current native record revision from get. A stale revision fails."
    },
    "map": {
      "type": "object",
      "properties": {
        "levels": {
          "minItems": 1,
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,40}$"
          },
          "description": "Native levels value; use the value and type returned by the corresponding service."
        },
        "spots": {
          "maxItems": 2000,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$",
                "description": "Native id value; use the value and type returned by the corresponding service."
              },
              "level": {
                "$ref": "#/$defs/_mcp0"
              },
              "zone": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,40}$",
                "description": "Native zone value; use the value and type returned by the corresponding service."
              },
              "x": {
                "$ref": "#/$defs/_mcp1"
              },
              "y": {
                "$ref": "#/$defs/_mcp2"
              },
              "width": {
                "description": "Native width value; use the value and type returned by the corresponding service.",
                "type": "number",
                "minimum": 6,
                "maximum": 40
              },
              "height": {
                "description": "Native height value; use the value and type returned by the corresponding service.",
                "type": "number",
                "minimum": 6,
                "maximum": 40
              },
              "reserved": {
                "type": "boolean",
                "description": "Native reserved value; use the value and type returned by the corresponding service."
              },
              "blocked": {
                "type": "boolean",
                "description": "Native blocked value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "id",
              "level",
              "zone",
              "x",
              "y",
              "reserved",
              "blocked"
            ],
            "additionalProperties": false
          },
          "description": "Native spots value; use the value and type returned by the corresponding service."
        },
        "draws": {
          "maxItems": 2000,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "line",
                  "wall",
                  "lane",
                  "zone",
                  "gate",
                  "label"
                ],
                "description": "Native type value; use the value and type returned by the corresponding service."
              },
              "level": {
                "$ref": "#/$defs/_mcp0"
              },
              "x": {
                "$ref": "#/$defs/_mcp1"
              },
              "y": {
                "$ref": "#/$defs/_mcp2"
              },
              "x2": {
                "description": "Native x2 value; use the value and type returned by the corresponding service.",
                "type": "number",
                "minimum": 0,
                "maximum": 105
              },
              "y2": {
                "description": "Native y2 value; use the value and type returned by the corresponding service.",
                "type": "number",
                "minimum": 0,
                "maximum": 105
              },
              "label": {
                "description": "Native label value; use the value and type returned by the corresponding service.",
                "type": "string",
                "maxLength": 100
              }
            },
            "required": [
              "type",
              "level",
              "x",
              "y"
            ],
            "additionalProperties": false
          },
          "description": "Native draws value; use the value and type returned by the corresponding service."
        }
      },
      "required": [
        "levels",
        "spots",
        "draws"
      ],
      "additionalProperties": false,
      "description": "Native map 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": [
    "locationId",
    "zoneId",
    "expectedRevision",
    "map",
    "requestId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,40}$",
      "description": "Native level value; use the value and type returned by the corresponding service."
    },
    "_mcp1": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Native x value; use the value and type returned by the corresponding service."
    },
    "_mcp2": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Native y value; use the value and type returned by the corresponding service."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Native revision value; use the value and type returned by the corresponding service."
    },
    "values": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Verified business fields only. Credentials, private storage paths and native receipts are excluded."
    }
  },
  "required": [
    "id",
    "revision",
    "values"
  ],
  "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"
          }
        }
      ]
    }
  }
}