Коммуникации · Чувствительное действие
Расписание · Сообщения · Создание
scheduled_message_create
Попробуйте три запроса
Подготовить
- Вы указываетеДиалог
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Расписание / Сообщения / Создание». Для изменения нужны диалог, текст. Покажи объект и ожидаемый эффект до выполнения.
- conversationId
- Диалог
- text
- Текст
- scheduledAt
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Расписание / Сообщения / Создание» с параметром conversationId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- conversationId
- DEMO-101
- text
- Учебный текст
- integrationId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Расписание / Сообщения / Создание» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Schedule one authorized message in an existing canonical CRM conversation discovered through scheduled_message_conversations/routes. Native conversation ownership, recipient route, media ownership and provider messaging window are checked now and again at dispatch. Native CRM uploaded attachments only. The job is not delivery confirmation; preserve requestId and use scheduled_message_get_operation after uncertainty.
Параметры запроса
- conversationId
- Native conversationId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- text
- Native text value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 40000
- integrationId
- Native integrationId value; use the value and type returned by the corresponding service. необязательно · string
- media
- Native media value; use the value and type returned by the corresponding service. необязательно · array · до элементов 10
- scheduledAt
- Future UTC instant on a five-minute boundary, from one minute to 366 days ahead. обязательно по схеме · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"conversationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native conversationId value; use the value and type returned by the corresponding service."
},
"text": {
"default": "",
"description": "Native text value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 40000
},
"integrationId": {
"description": "Native integrationId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"media": {
"description": "Native media value; use the value and type returned by the corresponding service.",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2500,
"format": "uri",
"pattern": "^https:\\/\\/.*",
"description": "Native url value; use the value and type returned by the corresponding service."
},
"type": {
"description": "Native type value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"image",
"video",
"audio",
"document"
]
},
"name": {
"description": "Native name value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 200
},
"mime_type": {
"description": "Native mime_type value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 80
},
"storagePath": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Native CRM-owned upload storagePath; do not fabricate or substitute an arbitrary external attachment URL."
}
},
"required": [
"url",
"storagePath"
],
"additionalProperties": false
}
},
"scheduledAt": {
"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))$",
"description": "Future UTC instant on a five-minute boundary, from one minute to 366 days ahead."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
}
},
"required": [
"conversationId",
"text",
"scheduledAt",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"required": [
"companyId",
"result"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}