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

Услуги · Запись на услугу · Изменение

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

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

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

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

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

Amend the exact native appointment with its current version and newly quoted expectedTotal. Native paid-order rules preserve or reprice financial details; a stale version cannot overwrite a later edit. Does not refund or charge. 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
lines
Native lines value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 10
guestId
Native guestId value; use the value and type returned by the corresponding service. обязательно по схеме · string / string
comment
Native comment value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 2000
color
Native color value; use the value and type returned by the corresponding service. необязательно · string / null
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedTotal
Native expectedTotal value; use the value and type returned by the corresponding service. обязательно по схеме · number · минимум 0
id
Идентификатор выбранной записи. обязательно по схеме · string
version
Native version value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
overlapConfirmed
True only after explicit user approval of the exact quoted overlap. необязательно · 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_appointment_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."
    },
    "lines": {
      "minItems": 1,
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "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."
          },
          "productId": {
            "type": "string",
            "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Native productId value; use the value and type returned by the corresponding service."
          },
          "date": {
            "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 date value; use the value and type returned by the corresponding service."
          },
          "durationMinutes": {
            "type": "integer",
            "minimum": 5,
            "maximum": 1440,
            "description": "Native durationMinutes value; use the value and type returned by the corresponding service."
          },
          "modifiers": {
            "default": [],
            "description": "Native modifiers value; use the value and type returned by the corresponding service.",
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "optionSetId": {
                  "type": "string",
                  "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
                  "description": "Native optionSetId value; use the value and type returned by the corresponding service."
                },
                "productIds": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
                  },
                  "description": "Native productIds value; use the value and type returned by the corresponding service."
                },
                "quantities": {
                  "description": "Native quantities value; use the value and type returned by the corresponding service.",
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
                  },
                  "additionalProperties": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                }
              },
              "required": [
                "optionSetId",
                "productIds"
              ],
              "additionalProperties": false
            }
          },
          "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."
          },
          "unitPrice": {
            "description": "Native unitPrice value; use the value and type returned by the corresponding service.",
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "discountPercent": {
            "description": "Native discountPercent value; use the value and type returned by the corresponding service.",
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "discountAmount": {
            "description": "Native discountAmount value; use the value and type returned by the corresponding service.",
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "overlapConfirmation": {
            "description": "Native overlapConfirmation value; use the value and type returned by the corresponding service.",
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "employeeId",
          "productId",
          "date",
          "durationMinutes",
          "modifiers",
          "start"
        ],
        "additionalProperties": false
      },
      "description": "Native lines value; use the value and type returned by the corresponding service."
    },
    "guestId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        {
          "type": "string",
          "const": ""
        }
      ],
      "description": "Native guestId value; use the value and type returned by the corresponding service."
    },
    "comment": {
      "default": "",
      "description": "Native comment value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2000
    },
    "color": {
      "description": "Native color value; use the value and type returned by the corresponding service.",
      "anyOf": [
        {
          "type": "string",
          "pattern": "^#[a-f0-9]{6}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "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."
    },
    "expectedTotal": {
      "type": "number",
      "minimum": 0,
      "description": "Native expectedTotal value; use the value and type returned by the corresponding service."
    },
    "id": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native version value; use the value and type returned by the corresponding service."
    },
    "overlapConfirmed": {
      "description": "True only after explicit user approval of the exact quoted overlap.",
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "establishmentId",
    "lines",
    "guestId",
    "comment",
    "requestId",
    "expectedTotal",
    "id",
    "version"
  ],
  "additionalProperties": false
}
Выход · 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"
          }
        }
      ]
    }
  }
}