Автоматизации · Изменение
Flow · Создание
flows_create
Попробуйте три запроса
Подготовить
- Вы указываетеНазвание
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Flow / Создание». Для изменения нужны название, комментарий. Покажи объект и ожидаемый эффект до выполнения.
- name
- Название
- comment
- Комментарий
- tag
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Flow / Создание» с параметром name = Осенняя коллекция. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- name
- Осенняя коллекция
- comment
- Проверено на учебной записи
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Flow / Создание» по исходному ответу. Покажи сценарий, тип операции. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Create an EMPTY native Flow draft with localized name, comment and tag. On errors use system_logs_search; read sabsus_get_master_prompt topic=automations for diagnosis. The server assigns its ID, create_at, items=[] and isActive=false. Node/config input is intentionally unavailable in this operation. Does not register, traverse, activate, test or run a Flow. Requires company-wide automations.create; requestId makes the native create and its receipt atomic.
Параметры запроса
- name
- Native Namesjson names; retain Language/Text casing and unique language labels. обязательно по схеме · array · до элементов 30
- comment
- Native Flow description, stored as metadata only. обязательно по схеме · string · по умолчанию "" · до символов 4000
- tag
- Native Flow document tag. обязательно по схеме · string · по умолчанию "" · до символов 300
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- flowId
- Native Flow identifier returned by discovery or draft creation; company is resolved by the server. обязательно по схеме · string · до символов 160
- operation
- Exact configuration operation committed. обязательно по схеме · string · варианты create_empty_draft, update_metadata
- appliedFromRevision
- Revision checked for update; null for a newly created draft. Read flows_get_metadata for the current revision. обязательно по схеме · string / null
- active
- Native isActive is false after this configuration change. обязательно по схеме · boolean
- executionStarted
- This action never starts, tests or traverses Flow. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"minItems": 1,
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"Language": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "Native case-sensitive language label."
},
"Text": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Localized Flow display name."
}
},
"required": [
"Language",
"Text"
],
"additionalProperties": false
},
"description": "Native Namesjson names; retain Language/Text casing and unique language labels."
},
"comment": {
"default": "",
"type": "string",
"maxLength": 4000,
"description": "Native Flow description, stored as metadata only."
},
"tag": {
"default": "",
"type": "string",
"maxLength": 300,
"description": "Native Flow document tag."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for these exact arguments; reuse it after an uncertain response."
}
},
"required": [
"name",
"comment",
"tag",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"flowId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Native Flow identifier returned by discovery or draft creation; company is resolved by the server."
},
"operation": {
"type": "string",
"enum": [
"create_empty_draft",
"update_metadata"
],
"description": "Exact configuration operation committed."
},
"appliedFromRevision": {
"anyOf": [
{
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact server revision returned by flows_get_metadata. Every document change, including Studio edits, conflicts."
},
{
"type": "null"
}
],
"description": "Revision checked for update; null for a newly created draft. Read flows_get_metadata for the current revision."
},
"active": {
"type": "boolean",
"const": false,
"description": "Native isActive is false after this configuration change."
},
"executionStarted": {
"type": "boolean",
"const": false,
"description": "This action never starts, tests or traverses Flow."
}
},
"required": [
"flowId",
"operation",
"appliedFromRevision",
"active",
"executionStarted"
],
"additionalProperties": false
}