CRM · Чтение
Клиенты · Изменение · Контекст
customer_edit_context
Попробуйте три запроса
Получить данные
- Вы указываетеКлиент
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Изменение / Контекст» выполни чтение по выбранной записи (клиент). Выведи кратко: клиент, версия записи.
- customerId
- Клиент
- revision
- Версия записи
- values
- Изменяемые поля
Задать параметры
- Вы указываетеКлиент
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Клиенты / Изменение / Контекст» на учебном примере с customerId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- customerId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Изменение / Контекст» объясни клиент, версия записи. Отметь отсутствующие значения.
- customerId
- Клиент
- revision
- Версия записи
- values
- Изменяемые поля
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read exact ordinary customer profile values and the current Firestore revision before editing. Does not return contacts or credentials.
Параметры запроса
- customerId
- Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string · до символов 160
Что вернёт команда
- customerId
- Canonical existing users document identifier returned by customers_search; the server verifies its current company and location. обязательно по схеме · string · до символов 160
- revision
- Exact Firestore revision returned by the corresponding customer edit context; any concurrent document change conflicts. обязательно по схеме · string
- values
- Editable ordinary profile values; identity, login contacts, employee permissions and finance are excluded. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical existing users document identifier returned by customers_search; the server verifies its current company and location."
}
},
"required": [
"customerId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"customerId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical existing users document identifier returned by customers_search; the server verifies its current company and location."
},
"revision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact Firestore revision returned by the corresponding customer edit context; any concurrent document change conflicts."
},
"values": {
"type": "object",
"properties": {
"firstName": {
"description": "Exact stored Firstname or null when absent; no truncation is applied.",
"type": [
"string",
"null"
]
},
"lastName": {
"description": "Exact stored Lastname or null when absent.",
"type": [
"string",
"null"
]
},
"language": {
"description": "Exact stored Language preference or null when absent.",
"type": [
"string",
"null"
]
},
"note": {
"description": "Exact stored Comment or null when absent.",
"type": [
"string",
"null"
]
}
},
"required": [
"firstName",
"lastName",
"language",
"note"
],
"additionalProperties": false,
"description": "Editable ordinary profile values; identity, login contacts, employee permissions and finance are excluded."
}
},
"required": [
"customerId",
"revision",
"values"
],
"additionalProperties": false
}