Коммуникации · Чтение
Сообщения · Шаблоны · Просмотр · Изменение · Операция
message_template_get_edit_operation
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Сообщения / Шаблоны / Просмотр / Изменение / Операция» выполни чтение в текущей компании. Выведи кратко: статус, результат.
- status
- Статус
- result
- Результат
Уточнить условия
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Для «Сообщения / Шаблоны / Просмотр / Изменение / Операция» перечисли допустимые параметры исходные данные. Уточни, какие значения нужны для моей задачи, до запроса данных.
- original
- Исходные данные
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Сообщения / Шаблоны / Просмотр / Изменение / Операция» объясни статус, результат. Отметь отсутствующие значения.
- status
- Статус
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Recover the immutable create/update result for this Message template after a lost response. Uses the original request and current account, client, module and resource access. This read never repeats a write. not_recorded does not mean an in-flight operation cannot commit.
Параметры запроса
- original
- Original create or update operation. No arbitrary Action or collection is accepted. обязательно по схеме
Что вернёт команда
- status
- Whether the exact native structure transaction receipt is currently recorded. обязательно по схеме · string · варианты committed, not_recorded
- result
- Original committed values and revision, or null. Read edit_context for current state. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"original": {
"oneOf": [
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "create",
"description": "Original native structure write operation."
},
"arguments": {
"type": "object",
"properties": {
"requestId": {
"$ref": "#/$defs/_mcp0"
},
"values": {
"$ref": "#/$defs/_mcp11"
}
},
"required": [
"requestId",
"values"
],
"additionalProperties": false,
"description": "Exact original arguments, including its requestId and expectedRevision when updating."
}
},
"required": [
"operation",
"arguments"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"const": "update",
"description": "Original native structure write operation."
},
"arguments": {
"type": "object",
"properties": {
"requestId": {
"$ref": "#/$defs/_mcp0"
},
"values": {
"$ref": "#/$defs/_mcp11"
},
"resourceId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical Message template document identifier from an existing search or edit_context."
},
"expectedRevision": {
"type": "string",
"description": "Exact revision returned by edit_context. Updates reject concurrent changes instead of overwriting them."
}
},
"required": [
"requestId",
"values",
"resourceId",
"expectedRevision"
],
"additionalProperties": false,
"description": "Exact original arguments, including its requestId and expectedRevision when updating."
}
},
"required": [
"operation",
"arguments"
],
"additionalProperties": false
}
],
"description": "Original create or update operation. No arbitrary Action or collection is accepted."
}
},
"required": [
"original"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Unique operation retry identifier. Reuse only for exactly the same structure and field values."
},
"_mcp11": {
"type": "object",
"properties": {
"isActive": {
"description": "Native Message template.isActive.",
"type": "boolean"
},
"sort": {
"description": "Native Message template.sort.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"title": {
"$ref": "#/$defs/_mcp2"
},
"subject": {
"$ref": "#/$defs/_mcp4"
},
"body": {
"$ref": "#/$defs/_mcp6"
},
"files": {
"$ref": "#/$defs/_mcp7"
},
"channel": {
"$ref": "#/$defs/_mcp8"
},
"stages": {
"$ref": "#/$defs/_mcp9"
},
"html": {
"description": "Native Message template.html.",
"type": "boolean"
},
"before": {
"description": "Native Message template.before.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"locations": {
"$ref": "#/$defs/_mcp10"
}
},
"additionalProperties": false,
"description": "Exact original native message-template values. A recorded immutable result can be recovered after schema changes; current location access is checked again. Uncommitted requests must pass current validation."
},
"_mcp2": {
"description": "Native Message template.title. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp1"
}
},
"_mcp4": {
"description": "Native Message template.subject. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp3"
}
},
"_mcp6": {
"description": "Native Message template.body. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp5"
}
},
"_mcp7": {
"description": "Native Message template.files. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.files."
}
},
"_mcp8": {
"description": "Native Message template.channel. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.channel."
}
},
"_mcp9": {
"description": "Native Message template.stages. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.stages."
}
},
"_mcp10": {
"description": "Native Message template.locations. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.locations."
}
},
"_mcp1": {
"type": "object",
"properties": {
"Language": {
"description": "Native Namesjson.Language.",
"type": "string",
"maxLength": 2000
},
"Text": {
"description": "Native Namesjson.Text.",
"type": "string",
"maxLength": 12000
}
},
"additionalProperties": false,
"description": "Native Message template.title."
},
"_mcp3": {
"type": "object",
"properties": {
"Language": {
"description": "Native Namesjson.Language.",
"type": "string",
"maxLength": 2000
},
"Text": {
"description": "Native Namesjson.Text.",
"type": "string",
"maxLength": 12000
}
},
"additionalProperties": false,
"description": "Native Message template.subject."
},
"_mcp5": {
"type": "object",
"properties": {
"Language": {
"description": "Native Namesjson.Language.",
"type": "string",
"maxLength": 2000
},
"Text": {
"description": "Native Namesjson.Text.",
"type": "string",
"maxLength": 12000
}
},
"additionalProperties": false,
"description": "Native Message template.body."
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"committed",
"not_recorded"
],
"description": "Whether the exact native structure transaction receipt is currently recorded."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"resourceId": {
"type": "string",
"description": "Canonical Message template document identifier in the connected company."
},
"revision": {
"type": "string",
"description": "Exact server revision for optimistic concurrency. Copy it unchanged into update requests."
},
"fieldErrors": {
"description": "Present only when editable fields have incompatible stored values. Those entire fields are omitted from values, not reset. Use this revision and an explicit valid patch to repair them; all other fields remain unchanged.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "Native field path requiring an explicit correction; no stored values are returned."
},
"expected": {
"type": "string",
"description": "Required native type or edit bound."
},
"actual": {
"type": "string",
"description": "Observed value type, never its content."
}
},
"required": [
"field",
"expected",
"actual"
],
"additionalProperties": false
}
},
"values": {
"type": "object",
"properties": {
"isActive": {
"description": "Native Message template.isActive.",
"type": "boolean"
},
"sort": {
"description": "Native Message template.sort.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"title": {
"description": "Native Message template.title. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"Language": {
"description": "Native Namesjson.Language.",
"type": "string",
"maxLength": 2000
},
"Text": {
"description": "Native Namesjson.Text.",
"type": "string",
"maxLength": 12000
}
},
"additionalProperties": false,
"description": "Native Message template.title."
}
},
"subject": {
"description": "Native Message template.subject. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"Language": {
"description": "Native Namesjson.Language.",
"type": "string",
"maxLength": 2000
},
"Text": {
"description": "Native Namesjson.Text.",
"type": "string",
"maxLength": 12000
}
},
"additionalProperties": false,
"description": "Native Message template.subject."
}
},
"body": {
"description": "Native Message template.body. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"Language": {
"description": "Native Namesjson.Language.",
"type": "string",
"maxLength": 2000
},
"Text": {
"description": "Native Namesjson.Text.",
"type": "string",
"maxLength": 12000
}
},
"additionalProperties": false,
"description": "Native Message template.body."
}
},
"files": {
"description": "Native Message template.files. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.files."
}
},
"channel": {
"description": "Native Message template.channel. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.channel."
}
},
"stages": {
"description": "Native Message template.stages. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.stages."
}
},
"html": {
"description": "Native Message template.html.",
"type": "boolean"
},
"before": {
"description": "Native Message template.before.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"locations": {
"description": "Native Message template.locations. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"description": "Native Message template.locations."
}
}
},
"additionalProperties": false,
"description": "Typed editable Message template fields. Credentials and service-owned identifiers are excluded; omitted fields were not present."
}
},
"required": [
"resourceId",
"revision",
"values"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Original committed values and revision, or null. Read edit_context for current state."
}
},
"required": [
"status",
"result"
],
"additionalProperties": false
}