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

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

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

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

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

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

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

Edit a current Services staff profile at its primary establishment using the exact revision, including management employees when their Position is unchanged. First read the complete profile and preserve unchanged fields. The photo field accepts an HTTPS URL, an empty string to clear it, or {mediaId} from media_prepare_upload for this employee. Supports multilingual about text and gallery captions. Changes to management roles use the dedicated employee access workflow. Does not create an Auth account, change passwords or send invitations. 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.

Параметры запроса
id
Идентификатор выбранной записи. обязательно по схеме · string
establishmentId
Native establishmentId value; use the value and type returned by the corresponding service. обязательно по схеме · string
firstName
Native firstName value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 100
lastName
Native lastName value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 100
phone
Native phone value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 50
email
Native email value; use the value and type returned by the corresponding service. обязательно по схеме · string / string
positionId
Native positionId value; use the value and type returned by the corresponding service. обязательно по схеме · string
photo
Employee photo: HTTPS URL, empty string to clear, or a completed managed image {mediaId}. Saved by the ordinary profile update. обязательно по схеме · string / object
gallery
Native gallery value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 100
about
Native about value; use the value and type returned by the corresponding service. необязательно · array · до элементов 20
workDetails
Native workDetails value; use the value and type returned by the corresponding service. необязательно · array · до элементов 100
revision
Текущая версия выбранной записи. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
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_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "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."
    },
    "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."
    },
    "firstName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Native firstName value; use the value and type returned by the corresponding service."
    },
    "lastName": {
      "type": "string",
      "maxLength": 100,
      "description": "Native lastName value; use the value and type returned by the corresponding service."
    },
    "phone": {
      "type": "string",
      "maxLength": 50,
      "description": "Native phone value; use the value and type returned by the corresponding service."
    },
    "email": {
      "anyOf": [
        {
          "type": "string",
          "const": ""
        },
        {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        }
      ],
      "description": "Native email value; use the value and type returned by the corresponding service."
    },
    "positionId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native positionId value; use the value and type returned by the corresponding service."
    },
    "photo": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4000
        },
        {
          "type": "object",
          "properties": {
            "mediaId": {
              "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": "Completed image prepared with entityType employee and this employee id."
            }
          },
          "required": [
            "mediaId"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Employee photo: HTTPS URL, empty string to clear, or a completed managed image {mediaId}. Saved by the ordinary profile update."
    },
    "gallery": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 4000,
        "format": "uri",
        "pattern": "^https:\\/\\/.*"
      },
      "description": "Native gallery value; use the value and type returned by the corresponding service."
    },
    "about": {
      "description": "Native about value; use the value and type returned by the corresponding service.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp2"
      }
    },
    "workDetails": {
      "description": "Native workDetails value; use the value and type returned by the corresponding service.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "image": {
            "type": "string",
            "maxLength": 4000,
            "format": "uri",
            "pattern": "^https:\\/\\/.*",
            "description": "Native image value; use the value and type returned by the corresponding service."
          },
          "title": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/$defs/_mcp2"
            },
            "description": "Native title value; use the value and type returned by the corresponding service."
          },
          "description": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/$defs/_mcp2"
            },
            "description": "Native description value; use the value and type returned by the corresponding service."
          }
        },
        "required": [
          "image",
          "title",
          "description"
        ],
        "additionalProperties": false
      }
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Native revision 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": [
    "id",
    "establishmentId",
    "firstName",
    "lastName",
    "phone",
    "email",
    "positionId",
    "photo",
    "gallery",
    "revision",
    "requestId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp2": {
      "type": "object",
      "properties": {
        "Language": {
          "$ref": "#/$defs/_mcp0"
        },
        "Text": {
          "$ref": "#/$defs/_mcp1"
        }
      },
      "required": [
        "Language",
        "Text"
      ],
      "additionalProperties": false
    },
    "_mcp0": {
      "type": "string",
      "maxLength": 35,
      "pattern": "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
      "description": "Native Language value; use the value and type returned by the corresponding service."
    },
    "_mcp1": {
      "type": "string",
      "maxLength": 4000,
      "description": "Native Text 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"
          }
        }
      ]
    }
  }
}