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

Услуги · Сотрудники · Календарь · Изменение

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

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

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

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

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

Edit the native unified employee calendar with its exact revision. Set days off/on, daily working windows and breaks, close or reopen an interval, adopt existing native schedules, or set the global service/slot policy. A global policy change requires acknowledgePolicyChange=true after agreement. Retains history and the original operation receipt. Requires the current native Booking/Services subscription and management role. After uncertainty use services_get_operation with the original requestId; never substitute a new request.

Параметры запроса
establishmentId
Native establishmentId value; use the value and type returned by the corresponding service. обязательно по схеме · string
employeeId
Native employeeId value; use the value and type returned by the corresponding service. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
revision
Текущая версия выбранной записи. обязательно по схеме · string
kind
Native kind value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты adopt, days, window, policy, close, reopen, closures
dates
Native dates value; use the value and type returned by the corresponding service. необязательно · array · до элементов 62
off
Native off value; use the value and type returned by the corresponding service. необязательно · boolean
startClock
Native startClock value; use the value and type returned by the corresponding service. необязательно · string
finishClock
Native finishClock value; use the value and type returned by the corresponding service. необязательно · string
breaks
Native breaks value; use the value and type returned by the corresponding service. необязательно · array · до элементов 8
productIds
Native productIds value; use the value and type returned by the corresponding service. необязательно · array · до элементов 100
step
Native step value; use the value and type returned by the corresponding service. необязательно · integer · минимум 5 · максимум 240
buffer
Native buffer value; use the value and type returned by the corresponding service. необязательно · integer · минимум 0 · максимум 240
allowOutsideHours
Native allowOutsideHours value; use the value and type returned by the corresponding service. необязательно · boolean
start
Native start value; use the value and type returned by the corresponding service. необязательно · string
finish
Native finish value; use the value and type returned by the corresponding service. необязательно · string
comment
Native comment value; use the value and type returned by the corresponding service. необязательно · string · до символов 500
closureId
Native closureId value; use the value and type returned by the corresponding service. необязательно · string
closures
Native closures value; use the value and type returned by the corresponding service. необязательно · array · до элементов 1000
acknowledgePolicyChange
Native acknowledgePolicyChange value; use the value and type returned by the corresponding service. необязательно · boolean
Что вернёт команда
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
Поля и технические схемы
Входные поля и поля ответа services_employee_calendar_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "establishmentId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native establishmentId value; use the value and type returned by the corresponding service."
    },
    "employeeId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native employeeId 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."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Native revision value; use the value and type returned by the corresponding service."
    },
    "kind": {
      "type": "string",
      "enum": [
        "adopt",
        "days",
        "window",
        "policy",
        "close",
        "reopen",
        "closures"
      ],
      "description": "Native kind value; use the value and type returned by the corresponding service."
    },
    "dates": {
      "description": "Native dates value; use the value and type returned by the corresponding service.",
      "minItems": 1,
      "maxItems": 62,
      "type": "array",
      "items": {
        "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])))$"
      }
    },
    "off": {
      "description": "Native off value; use the value and type returned by the corresponding service.",
      "type": "boolean"
    },
    "startClock": {
      "description": "Native startClock value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
    },
    "finishClock": {
      "description": "Native finishClock value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^(?:([01]\\d|2[0-3]):[0-5]\\d|24:00)$"
    },
    "breaks": {
      "description": "Native breaks value; use the value and type returned by the corresponding service.",
      "maxItems": 8,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "startClock": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "description": "Native startClock value; use the value and type returned by the corresponding service."
          },
          "finishClock": {
            "type": "string",
            "pattern": "^(?:([01]\\d|2[0-3]):[0-5]\\d|24:00)$",
            "description": "Native finishClock value; use the value and type returned by the corresponding service."
          },
          "comment": {
            "$ref": "#/$defs/_mcp0"
          }
        },
        "required": [
          "startClock",
          "finishClock",
          "comment"
        ],
        "additionalProperties": false
      }
    },
    "productIds": {
      "description": "Native productIds value; use the value and type returned by the corresponding service.",
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
      }
    },
    "step": {
      "description": "Native step value; use the value and type returned by the corresponding service.",
      "type": "integer",
      "minimum": 5,
      "maximum": 240
    },
    "buffer": {
      "description": "Native buffer value; use the value and type returned by the corresponding service.",
      "type": "integer",
      "minimum": 0,
      "maximum": 240
    },
    "allowOutsideHours": {
      "description": "Native allowOutsideHours value; use the value and type returned by the corresponding service.",
      "type": "boolean"
    },
    "start": {
      "description": "Native start value; use the value and type returned by the corresponding service.",
      "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)))$"
    },
    "finish": {
      "description": "Native finish value; use the value and type returned by the corresponding service.",
      "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)))$"
    },
    "comment": {
      "description": "Native comment value; use the value and type returned by the corresponding service.",
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "closureId": {
      "description": "Native closureId value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "closures": {
      "description": "Native closures value; use the value and type returned by the corresponding service.",
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Native id value; use the value and type returned by the corresponding service.",
            "type": "string",
            "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
          },
          "start": {
            "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)))$",
            "description": "Native start value; use the value and type returned by the corresponding service."
          },
          "finish": {
            "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)))$",
            "description": "Native finish value; use the value and type returned by the corresponding service."
          },
          "comment": {
            "$ref": "#/$defs/_mcp0"
          }
        },
        "required": [
          "start",
          "finish",
          "comment"
        ],
        "additionalProperties": false
      }
    },
    "acknowledgePolicyChange": {
      "description": "Native acknowledgePolicyChange value; use the value and type returned by the corresponding service.",
      "type": "boolean"
    }
  },
  "required": [
    "establishmentId",
    "employeeId",
    "requestId",
    "revision",
    "kind"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "maxLength": 500,
      "description": "Native comment 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": {
    "companyId": {
      "type": "string",
      "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"
          }
        }
      ]
    }
  }
}