Маркетинг · Кампании · Сохранение · Офлайн · Черновики
marketing_campaign_save_offline_draft
Попробуйте три запроса
- Вы указываетеКампания
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Маркетинг / Кампании / Сохранение / Офлайн / Черновики». Для изменения нужны кампания, название. Покажи объект и ожидаемый эффект до выполнения.
- campaignId
- Кампания
- name
- Название
- notes
- Параметр
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Маркетинг / Кампании / Сохранение / Офлайн / Черновики» с параметром objective = orders. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- objective
- orders
- campaignId
- DEMO-101
- name
- Осенняя коллекция
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Маркетинг / Кампании / Сохранение / Офлайн / Черновики» по исходному ответу. Покажи кампания, название. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Save offline campaign controls: name, notes, one of six objectives, zero or one verified company establishment and explicit absolute start/finish. Only supplied controls change; omitted fields are preserved, notes="" clears notes and establishmentIds=[] clears the selection. Converts only an initial multi_channel draft at stage 0 or updates an existing offline draft. Saves offline/draft/USD/stage-1 values and no provider command. Preserves other schedule settings; null cannot clear dates and the schedule cannot be replaced as a whole. Exact revision and atomic receipt prevent duplicate or stale saves.
Параметры запроса
- campaignId
- Existing native campaign ID. Only an initial multi_channel draft at stage 0 or an existing offline draft is eligible. обязательно по схеме · string · до символов 512
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- name
- Human campaign name. необязательно · string · до символов 200
- notes
- Complete human planning notes; an empty string clears notes. необязательно · string · до символов 4000
- objective
- Exact native objective selected in the offline editor; this does not execute a booking, call, message or order. необязательно · string · варианты orders, bookings, leads, calls, messages, store
- establishmentIds
- Empty for no selected establishment, or one company establishment as supported by the native single-selection control. Each selected ID is verified server-side. необязательно · array · до элементов 1
- startAt
- Explicit absolute start timestamp with Z or UTC offset. Browser-local timezone and date ordering are not inferred. необязательно · string · до символов 40
- finishAt
- Explicit absolute finish timestamp with Z or UTC offset. Omit to preserve the current date; null cannot clear it. необязательно · string · до символов 40
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- campaignId
- Existing native document ID. обязательно по схеме · string · до символов 512
- name
- Exact saved name. An omitted name is returned without trimming its stored value. обязательно по схеме · string · до символов 200
- notes
- Complete human planning notes; an empty string clears notes. обязательно по схеме · string · до символов 4000
- objective
- Exact native objective selected in the offline editor; this does not execute a booking, call, message or order. обязательно по схеме · string · варианты orders, bookings, leads, calls, messages, store
- establishmentIds
- Empty for no selected establishment, or one company establishment as supported by the native single-selection control. Each selected ID is verified server-side. обязательно по схеме · array · до элементов 1
- startAt
- Explicit absolute start timestamp with Z or UTC offset. Browser-local timezone and date ordering are not inferred. обязательно по схеме · string · до символов 40
- finishAt
- Explicit absolute finish timestamp with Z or UTC offset. Omit to preserve the current date; null cannot clear it. обязательно по схеме · string · до символов 40
- campaignType
- Campaign type recorded by the original save. обязательно по схеме · string
- status
- Historical status at save; use configuration read for current state. обязательно по схеме · string
- currency
- Native offline form constant; no exchange or provider charge occurs. обязательно по схеме · string
- draftStep
- Native saved offline editor stage. обязательно по схеме · number
- updatedAt
- Server timestamp recorded by this save. Obtain a fresh document revision before another edit. обязательно по схеме · string · до символов 40
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
"description": "Existing native campaign ID. Only an initial multi_channel draft at stage 0 or an existing offline draft is eligible."
},
"expectedRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact current revision from marketing_campaign_get_offline_draft_configuration."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Human campaign name."
},
"notes": {
"type": "string",
"maxLength": 4000,
"description": "Complete human planning notes; an empty string clears notes."
},
"objective": {
"type": "string",
"enum": [
"orders",
"bookings",
"leads",
"calls",
"messages",
"store"
],
"description": "Exact native objective selected in the offline editor; this does not execute a booking, call, message or order."
},
"establishmentIds": {
"maxItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing company establishment ID."
},
"description": "Empty for no selected establishment, or one company establishment as supported by the native single-selection control. Each selected ID is verified server-side."
},
"startAt": {
"type": "string",
"maxLength": 40,
"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": "Explicit absolute start timestamp with Z or UTC offset. Browser-local timezone and date ordering are not inferred."
},
"finishAt": {
"type": "string",
"maxLength": 40,
"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": "Explicit absolute finish timestamp with Z or UTC offset. Omit to preserve the current date; null cannot clear it."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for these exact save arguments. Recover this same request after an uncertain response."
}
},
"required": [
"campaignId",
"expectedRevision",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
"description": "Existing native document ID."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Exact saved name. An omitted name is returned without trimming its stored value."
},
"notes": {
"type": "string",
"maxLength": 4000,
"description": "Complete human planning notes; an empty string clears notes."
},
"objective": {
"type": "string",
"enum": [
"orders",
"bookings",
"leads",
"calls",
"messages",
"store"
],
"description": "Exact native objective selected in the offline editor; this does not execute a booking, call, message or order."
},
"establishmentIds": {
"maxItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing company establishment ID."
},
"description": "Empty for no selected establishment, or one company establishment as supported by the native single-selection control. Each selected ID is verified server-side."
},
"startAt": {
"type": "string",
"maxLength": 40,
"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": "Explicit absolute start timestamp with Z or UTC offset. Browser-local timezone and date ordering are not inferred."
},
"finishAt": {
"type": "string",
"maxLength": 40,
"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": "Explicit absolute finish timestamp with Z or UTC offset. Omit to preserve the current date; null cannot clear it."
},
"campaignType": {
"type": "string",
"const": "offline",
"description": "Campaign type recorded by the original save."
},
"status": {
"type": "string",
"const": "draft",
"description": "Historical status at save; use configuration read for current state."
},
"currency": {
"type": "string",
"const": "USD",
"description": "Native offline form constant; no exchange or provider charge occurs."
},
"draftStep": {
"type": "number",
"const": 1,
"description": "Native saved offline editor stage."
},
"updatedAt": {
"type": "string",
"maxLength": 40,
"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 timestamp recorded by this save. Obtain a fresh document revision before another edit."
}
},
"required": [
"campaignId",
"name",
"notes",
"objective",
"establishmentIds",
"startAt",
"finishAt",
"campaignType",
"status",
"currency",
"draftStep",
"updatedAt"
],
"additionalProperties": false
}