Оборудование · Чувствительное действие
Оборудование · Отзывы · Наблюдение
equipment_review_observation
Попробуйте три запроса
Подготовить
- Вы указываетеObservationid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Оборудование / Отзывы / Наблюдение». Для изменения нужны observationId, вариант операции. Покажи объект и ожидаемый эффект до выполнения.
- observationId
- Параметр
- action
- Вариант операции
- text
- Текст
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Оборудование / Отзывы / Наблюдение» с параметром action = approve. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- action
- approve
- observationId
- DEMO-101
- text
- Учебный текст
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Оборудование / Отзывы / Наблюдение» по исходному ответу. Покажи observationId, equipmentId. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Review a native EquipmentLog observation with current equipment_events.update and read permission. Only both the current asset manager and recorded observation manager may approve native waite to done; the original observer or current asset manager may append a real corrective action. Preserves evidence, measurements, warnings, stock and Flow. Uses canonical revision, atomic audit and idempotent recovery; the native reviewer permissions and audit remain mandatory.
Параметры запроса
- observationId
- Native EquipmentLog ID from equipment_events_list/get. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- action
- Вариант действия, разрешённый схемой. обязательно по схеме · string · варианты approve, corrective_action
- text
- User-provided review rationale or actually performed corrective action. Never infer physical inspection, a signature or completion. обязательно по схеме · string · до символов 4000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- observationId
- Reviewed native observation. обязательно по схеме · string
- equipmentId
- Current native asset. обязательно по схеме · string
- locationId
- Current authorized location. обязательно по схеме · string
- revision
- Revision at the atomic review commit, not a later record revision. обязательно по схеме · string
- action
- Committed review operation. обязательно по схеме · string · варианты approve, corrective_action
- status
- Native review status. done means manager reviewed the observation; unresolved warnings remain separate. обязательно по схеме · string / null
- recordedAt
- Server review timestamp. обязательно по схеме · string
- actorId
- Authenticated employee; never caller selected. обязательно по схеме · string
- requiresAction
- Unchanged native incident flag; approval or a note does not resolve an incident. обязательно по схеме · boolean / null
- effects
- Only native review/corrective fields, audit metadata and the existing operation receipt changed. No photos, signatures, inventory, provider or Flow effects. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"observationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native EquipmentLog ID from equipment_events_list/get."
},
"expectedRevision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Current canonical xmin revision from equipment_events_get. A changed record conflicts."
},
"action": {
"type": "string",
"enum": [
"approve",
"corrective_action"
],
"description": "approve: assigned native manager reviews a waite observation and changes only its review status to done. corrective_action: original observer or current manager appends the described action; never clears a warning or approves it."
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 4000,
"description": "User-provided review rationale or actually performed corrective action. Never infer physical inspection, a signature or completion."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable ID for this exact review. Retry unchanged after an uncertain response; do not generate a replacement ID."
}
},
"required": [
"observationId",
"expectedRevision",
"action",
"text",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"observationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Reviewed native observation."
},
"equipmentId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Current native asset."
},
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Current authorized location."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Revision at the atomic review commit, not a later record revision."
},
"action": {
"type": "string",
"enum": [
"approve",
"corrective_action"
],
"description": "Committed review operation."
},
"status": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
],
"description": "Native review status. done means manager reviewed the observation; unresolved warnings remain separate."
},
"recordedAt": {
"type": "string",
"format": "date-time",
"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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Server review timestamp."
},
"actorId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Authenticated employee; never caller selected."
},
"requiresAction": {
"description": "Unchanged native incident flag; approval or a note does not resolve an incident.",
"type": [
"boolean",
"null"
]
},
"effects": {
"type": "string",
"const": "native_review_only",
"description": "Only native review/corrective fields, audit metadata and the existing operation receipt changed. No photos, signatures, inventory, provider or Flow effects."
}
},
"required": [
"observationId",
"equipmentId",
"locationId",
"revision",
"action",
"status",
"recordedAt",
"actorId",
"requiresAction",
"effects"
],
"additionalProperties": false
}