Коммуникации · Изменение
Сотрудники · Уведомления · Отправка
employee_notifications_send
Попробуйте три запроса
Подготовить
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Сотрудники / Уведомления / Отправка». Для изменения нужны recipientIds, title. Покажи объект и ожидаемый эффект до выполнения.
- recipientIds
- Параметр
- title
- Параметр
- text
- Текст
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Сотрудники / Уведомления / Отправка» с параметром text = Учебный текст. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- text
- Учебный текст
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Сотрудники / Уведомления / Отправка» по исходному ответу. Покажи notificationId, состояние. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Notify up to twenty explicitly selected company employees through the existing inbox and native push queue. Protected employee membership, company-wide access and destination permissions are checked on the server. Native push preferences and idempotency are preserved. Uses current company and connection permissions through a request-bound Control delegation; never reports queue acceptance as device delivery.
Параметры запроса
- recipientIds
- One to twenty explicitly selected employees. No broadcast, arbitrary address, device token, group expansion or cross-company recipient is accepted. обязательно по схеме · array · до элементов 20
- title
- Plain notification title, at most 120 characters. обязательно по схеме · string · до символов 120
- text
- Plain notification body, at most 600 characters. Short bounds leave room for native navigation data within the push payload budget. обязательно по схеме · string · до символов 600
- target
- Typed native destination. The server constructs navigation parameters and validates referenced resources. обязательно по схеме · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- notificationId
- Canonical existing notification identifier issued by the native notification service. обязательно по схеме · string
- state
- queued means native push queue records exist; inbox_only means recipients opted out of push. Neither state proves device delivery. обязательно по схеме · string · варианты queued, inbox_only
- recipientCount
- Number of selected, validated employees with an inbox notification. обязательно по схеме · integer · минимум 1 · максимум 20
- pushRecipientCount
- Selected recipients eligible for push according to their current native opt-in setting. обязательно по схеме · integer · минимум 0 · максимум 20
- optedOutCount
- Selected employees whose native push preference is not enabled. Their inbox notification remains available. обязательно по схеме · integer · минимум 0 · максимум 20
- replayed
- Whether the native service returned an already claimed notification for the same operation. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"recipientIds": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Exact Firebase employee UID with active protected membership in the connected company."
},
"description": "One to twenty explicitly selected employees. No broadcast, arbitrary address, device token, group expansion or cross-company recipient is accepted."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Plain notification title, at most 120 characters."
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 600,
"description": "Plain notification body, at most 600 characters. Short bounds leave room for native navigation data within the push payload budget."
},
"target": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"schedule",
"worker",
"order",
"task",
"lead"
],
"description": "Destination inside SABSUS. schedule and worker open their native screen; order, task and lead require an accessible existing resource."
},
"resourceId": {
"description": "Existing order, task or lead ID from its discovery Action. Required for those destinations; omit for schedule and worker.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "Typed native destination. The server constructs navigation parameters and validates referenced resources."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable retry identifier for this exact notification. Reuse unchanged arguments after an uncertain response."
}
},
"required": [
"recipientIds",
"title",
"text",
"target",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"notificationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Canonical existing notification identifier issued by the native notification service."
},
"state": {
"type": "string",
"enum": [
"queued",
"inbox_only"
],
"description": "queued means native push queue records exist; inbox_only means recipients opted out of push. Neither state proves device delivery."
},
"recipientCount": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "Number of selected, validated employees with an inbox notification."
},
"pushRecipientCount": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"description": "Selected recipients eligible for push according to their current native opt-in setting."
},
"optedOutCount": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"description": "Selected employees whose native push preference is not enabled. Their inbox notification remains available."
},
"replayed": {
"type": "boolean",
"description": "Whether the native service returned an already claimed notification for the same operation."
}
},
"required": [
"notificationId",
"state",
"recipientCount",
"pushRecipientCount",
"optedOutCount",
"replayed"
],
"additionalProperties": false
}