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

Бронирование · Персонал · Сохранение

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

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

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

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

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

Native Booking workforce_save. 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
kind
Native kind value from the current Booking workspace. обязательно по схеме · string · варианты shifts, tasks
editingId
Native editingId value from the current Booking workspace. необязательно · string
revision
Текущая версия выбранной записи. необязательно · integer · минимум 0 · максимум 9007199254740991
selected
Native selected value from the current Booking workspace. обязательно по схеме · array · до элементов 20
repeatDaily
Native repeatDaily value from the current Booking workspace. обязательно по схеме · boolean · по умолчанию false
title
Native title value from the current Booking workspace. обязательно по схеме · string · по умолчанию "" · до символов 160
comment
Native comment value from the current Booking workspace. обязательно по схеме · string · по умолчанию "" · до символов 2000
orderId
Идентификатор выбранного заказа. необязательно · string
productId
Идентификатор найденного товара. необязательно · string
Что вернёт команда
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_workforce_save
Вход · 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."
    },
    "kind": {
      "type": "string",
      "enum": [
        "shifts",
        "tasks"
      ],
      "description": "Native kind value from the current Booking workspace."
    },
    "editingId": {
      "description": "Native editingId value from the current Booking workspace.",
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "revision": {
      "description": "Native revision value from the current Booking workspace.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "selected": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rid": {
            "type": "string",
            "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Native rid value from the current Booking workspace."
          },
          "start": {
            "type": "string",
            "format": "date",
            "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])))$",
            "description": "Native start value from the current Booking workspace."
          },
          "end": {
            "type": "string",
            "format": "date",
            "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])))$",
            "description": "Native end value from the current Booking workspace."
          },
          "from": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "description": "Native from value from the current Booking workspace."
          },
          "to": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "description": "Native to value from the current Booking workspace."
          },
          "done": {
            "default": false,
            "description": "Native done value from the current Booking workspace.",
            "type": "boolean"
          }
        },
        "required": [
          "rid",
          "start",
          "end",
          "from",
          "to",
          "done"
        ],
        "additionalProperties": false
      },
      "description": "Native selected value from the current Booking workspace."
    },
    "repeatDaily": {
      "default": false,
      "description": "Native repeatDaily value from the current Booking workspace.",
      "type": "boolean"
    },
    "title": {
      "default": "",
      "description": "Native title value from the current Booking workspace.",
      "type": "string",
      "maxLength": 160
    },
    "comment": {
      "default": "",
      "description": "Native comment value from the current Booking workspace.",
      "type": "string",
      "maxLength": 2000
    },
    "orderId": {
      "description": "Native orderId value from the current Booking workspace.",
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "productId": {
      "description": "Native productId value from the current Booking workspace.",
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
    }
  },
  "required": [
    "requestId",
    "kind",
    "selected",
    "repeatDaily",
    "title",
    "comment"
  ],
  "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"
          }
        }
      ]
    }
  }
}