Заказы · Изменение
Профиль клиента · изменение
orders_workspace_customer_profile_update
Попробуйте три запроса
Подготовить
- Вы указываетеКлиент
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Профиль клиента / изменение». Для изменения нужны клиент, profile. Покажи объект и ожидаемый эффект до выполнения.
- customerId
- Клиент
- profile
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Профиль клиента / изменение» с параметром customerId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- customerId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Профиль клиента / изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Native Order Workspace customer_profile_update. Uses the same current company handlers and permissions as order-web.web.app. Read every hash-bound chunk and follow any native pagination. Saved configuration, queued work and provider confirmation are distinct. Recover uncertain writes with orders_workspace_get_operation and the original request ID.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- customerId
- Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- profile
- Native profile value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · object
Что вернёт команда
- companyId
- Verified current native company. обязательно по схеме · string
- result
- Native operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings. обязательно по схеме · object
Поля и технические схемы

Вход · 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": "Stable request ID for this exact operation. Preserve after uncertainty; recover with get_operation."
},
"customerId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native customerId value. Resolve existing identifiers and read the current native state before changes."
},
"expectedRevision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native expectedRevision value. Resolve existing identifiers and read the current native state before changes."
},
"profile": {
"type": "object",
"properties": {
"notificationPush": {
"description": "Native notificationPush value. Resolve existing identifiers and read the current native state before changes.",
"type": "boolean"
},
"notificationSms": {
"description": "Native notificationSms value. Resolve existing identifiers and read the current native state before changes.",
"type": "boolean"
},
"notificationEmail": {
"description": "Native notificationEmail value. Resolve existing identifiers and read the current native state before changes.",
"type": "boolean"
},
"name": {
"$ref": "#/$defs/_mcp0"
},
"firstName": {
"description": "Native firstName value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"maxLength": 120
},
"lastName": {
"description": "Native lastName value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"maxLength": 120
},
"email": {
"default": "",
"description": "Native email value. Resolve existing identifiers and read the current native state before changes.",
"anyOf": [
{
"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,}$"
},
{
"type": "string",
"const": ""
}
]
},
"phone": {
"default": "",
"description": "Native phone value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"maxLength": 40
},
"description": {
"default": "",
"description": "Native description value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"maxLength": 4000
},
"contacts": {
"default": [],
"description": "Native contacts value. Resolve existing identifiers and read the current native state before changes.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 80,
"description": "Native name value. Resolve existing identifiers and read the current native state before changes."
},
"value": {
"type": "string",
"maxLength": 200,
"description": "Native value value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"name",
"value"
],
"additionalProperties": false
}
},
"groupId": {
"default": "",
"description": "Native groupId value. Resolve existing identifiers and read the current native state before changes.",
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
{
"type": "string",
"const": ""
}
]
},
"cardNumber": {
"default": "",
"description": "Native cardNumber value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"maxLength": 100
},
"language": {
"default": "en",
"description": "Native language value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"pattern": "^[a-z]{2,3}(?:-[A-Za-z]{2,4})?$"
},
"birthday": {
"default": "",
"description": "Native birthday value. Resolve existing identifiers and read the current native state before changes.",
"anyOf": [
{
"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])))$"
},
{
"type": "string",
"const": ""
}
]
},
"photo": {
"default": "",
"description": "Native photo value. Resolve existing identifiers and read the current native state before changes.",
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "string",
"const": ""
}
]
},
"blocked": {
"default": false,
"description": "Native blocked value. Resolve existing identifiers and read the current native state before changes.",
"type": "boolean"
},
"additionalFields": {
"default": [],
"description": "Native additionalFields value. Resolve existing identifiers and read the current native state before changes.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/_mcp0"
},
"value": {
"type": "string",
"maxLength": 1000,
"description": "Native value value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"name",
"value"
],
"additionalProperties": false
}
}
},
"required": [
"name",
"email",
"phone",
"description",
"contacts",
"groupId",
"cardNumber",
"language",
"birthday",
"photo",
"blocked",
"additionalFields"
],
"additionalProperties": false,
"description": "Native profile value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"requestId",
"customerId",
"expectedRevision",
"profile"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Native name value. Resolve existing identifiers and read the current native state before changes."
}
}
}Выход · 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 operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings."
}
},
"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"
}
}
]
}
}
}