Коммуникации · Изменение
Сообщения · Шаблоны · Создание
message_template_create
Попробуйте три запроса
Подготовить
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Сообщения / Шаблоны / Создание». Для изменения нужны изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
- values
- Изменяемые поля
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Сообщения / Шаблоны / Создание» с параметром values.isActive = true. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- values.isActive
- true
- values.html
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Сообщения / Шаблоны / Создание» по исходному ответу. Покажи ID объекта, версия записи. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Create one Message template using its real embedded FlutterFlow data structure. The server creates the identifier and binds the document to the connected company. This does not run workflows, send messages, charge payments or alter MCP permission grants. Retry with the same requestId after a network error.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
- values
- Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
Что вернёт команда
- resourceId
- Canonical Message template document identifier in the connected company. обязательно по схеме · string
- revision
- Exact server revision for optimistic concurrency. Copy it unchanged into update requests. обязательно по схеме · string
- fieldErrors
- 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. необязательно · array · до элементов 100
- values
- Typed editable Message template fields. Credentials and service-owned identifiers are excluded; omitted fields were not present. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"requestId": {
"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."
},
"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": "Exact native establishment IDs, verified in the connected company and allowed locations. Omit to preserve existing selection; an explicit empty array clears it. This does not grant location access.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
}
}
},
"additionalProperties": false,
"description": "Validated native Message template fields. Omitted fields are preserved on update. Nested objects merge; explicitly supplied arrays replace the array."
}
},
"required": [
"requestId",
"values"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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
}