MCP Control
Бронирование · Изменение

Бронирование · Объект · Изменение

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

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

Подготовить
  1. Вы указываетеРасписание
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Бронирование / Объект / Изменение». Для изменения нужны расписание, товар. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
scheduleId
Расписание
productId
Товар
name
Название
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Бронирование / Объект / Изменение» с параметром kind = stay. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
kind
stay
scheduleId
DEMO-101
productId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Бронирование / Объект / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как проследить одну попытку
  1. ЗапросСохранить исходный ключ
  2. ОтветПроверить статус
  3. ПроверкаСверить эффект операции
Как работает действие

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

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

Native Booking object_update. Uses the same current company handlers and business rules as booking.sabsus.site. Read all hash-bound chunks and follow native pagination. Recover uncertain writes with booking_workspace_get_operation and the original request ID.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
scheduleId
Native scheduleId value from the current Booking workspace. обязательно по схеме · string
productId
Идентификатор найденного товара. обязательно по схеме · string
name
Native name value from the current Booking workspace. обязательно по схеме · string · до символов 160
desc
Native desc value from the current Booking workspace. обязательно по схеме · string · по умолчанию "" · до символов 12000
price
Native price value from the current Booking workspace. обязательно по схеме · number · минимум 0 · максимум 10000000
capacity
Native capacity value from the current Booking workspace. обязательно по схеме · integer · минимум 1 · максимум 1000
kind
Native kind value from the current Booking workspace. обязательно по схеме · string · по умолчанию "stay" · варианты stay, car, room
unit
Native unit value from the current Booking workspace. обязательно по схеме · string · по умолчанию "nights"
available
Native available value from the current Booking workspace. обязательно по схеме · boolean · по умолчанию true
checkInStart
Native checkInStart value from the current Booking workspace. обязательно по схеме · string · по умолчанию "15:00"
checkOutTime
Native checkOutTime value from the current Booking workspace. обязательно по схеме · string · по умолчанию "11:00"
latestCheckIn
Native latestCheckIn value from the current Booking workspace. обязательно по схеме · string · по умолчанию "22:00"
latestCheckInNextDay
Native latestCheckInNextDay value from the current Booking workspace. обязательно по схеме · boolean · по умолчанию false
photoSource
Native photoSource value from the current Booking workspace. необязательно · object
removePhoto
Native removePhoto value from the current Booking workspace. обязательно по схеме · boolean · по умолчанию false
Что вернёт команда
companyId
Verified current native company. обязательно по схеме · string
result
Native Booking receipt or hash-bound JSON chunk. Historic completed receipts, current occupancy and provider confirmation are distinct. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа booking_workspace_object_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Native requestId value from the current Booking workspace."
    },
    "scheduleId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native scheduleId value from the current Booking workspace."
    },
    "productId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native productId value from the current Booking workspace."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "Native name value from the current Booking workspace."
    },
    "desc": {
      "default": "",
      "description": "Native desc value from the current Booking workspace.",
      "type": "string",
      "maxLength": 12000
    },
    "price": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000000,
      "description": "Native price value from the current Booking workspace."
    },
    "capacity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "description": "Native capacity value from the current Booking workspace."
    },
    "kind": {
      "default": "stay",
      "description": "Native kind value from the current Booking workspace.",
      "type": "string",
      "enum": [
        "stay",
        "car",
        "room"
      ]
    },
    "unit": {
      "default": "nights",
      "description": "Native unit value from the current Booking workspace.",
      "type": "string",
      "const": "nights"
    },
    "available": {
      "default": true,
      "description": "Native available value from the current Booking workspace.",
      "type": "boolean"
    },
    "checkInStart": {
      "default": "15:00",
      "description": "Native checkInStart value from the current Booking workspace.",
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
    },
    "checkOutTime": {
      "default": "11:00",
      "description": "Native checkOutTime value from the current Booking workspace.",
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
    },
    "latestCheckIn": {
      "default": "22:00",
      "description": "Native latestCheckIn value from the current Booking workspace.",
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
    },
    "latestCheckInNextDay": {
      "default": false,
      "description": "Native latestCheckInNextDay value from the current Booking workspace.",
      "type": "boolean"
    },
    "photoSource": {
      "description": "Native photoSource value from the current Booking workspace.",
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "image",
            "file"
          ],
          "description": "Native kind value from the current Booking workspace."
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
          "description": "Native id value from the current Booking workspace."
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "additionalProperties": false
    },
    "removePhoto": {
      "default": false,
      "description": "Native removePhoto value from the current Booking workspace.",
      "type": "boolean"
    }
  },
  "required": [
    "requestId",
    "scheduleId",
    "productId",
    "name",
    "desc",
    "price",
    "capacity",
    "kind",
    "unit",
    "available",
    "checkInStart",
    "checkOutTime",
    "latestCheckIn",
    "latestCheckInNextDay",
    "removePhoto"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Verified current native company."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native Booking receipt or hash-bound JSON chunk. Historic completed receipts, current occupancy and provider confirmation are distinct."
    }
  },
  "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"
          }
        }
      ]
    }
  }
}