Услуги · Сотрудники · Создание
services_employee_create
Попробуйте три запроса
- Вы указываетеФилиал
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Услуги / Сотрудники / Создание». Для изменения нужны филиал, firstName. Покажи объект и ожидаемый эффект до выполнения.
- establishmentId
- Филиал
- firstName
- Параметр
- lastName
- Параметр
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Услуги / Сотрудники / Создание» с параметром establishmentId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- establishmentId
- DEMO-101
- positionId
- DEMO-101
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Услуги / Сотрудники / Создание» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Create a native Services staff profile with name, establishment and a non-management Position. Email may be empty. This calls the same staff writer as Services; no Auth account, password, login invitation, schedule or access grant is created. First read employees_search/services_team to avoid duplicates; preserve requestId and use services_get_operation after uncertainty. 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
- 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
- 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
- Native photo value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 4000
- 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
- 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
Поля и технические схемы

Вход · 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."
},
"firstName": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Native firstName value; use the value and type returned by the corresponding service."
},
"lastName": {
"default": "",
"description": "Native lastName value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 100
},
"phone": {
"default": "",
"description": "Native phone value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 50
},
"email": {
"default": "",
"description": "Native email value; use the value and type returned by the corresponding service.",
"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,}$"
}
]
},
"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": {
"default": "",
"description": "Native photo value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 4000
},
"gallery": {
"default": [],
"description": "Native gallery value; use the value and type returned by the corresponding service.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 4000,
"format": "uri",
"pattern": "^https:\\/\\/.*"
}
},
"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
}
},
"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": [
"establishmentId",
"firstName",
"lastName",
"phone",
"email",
"positionId",
"photo",
"gallery",
"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"
}
}
]
}
}
}