MCP Control
Автоматизации · Изменение

Flow · Изменение

flows_update
Карточки процесса, соединённые нитями

Попробуйте три запроса

Подготовить
  1. Вы указываетеСценарий
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Flow / Изменение». Для изменения нужны сценарий, metadata. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
flowId
Сценарий
metadata
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Flow / Изменение» с параметром flowId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
flowId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Flow / Изменение» по исходному ответу. Покажи сценарий, тип операции. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Update ONLY localized name, comment or tag of one existing native Flow with exact revision protection. On errors use system_logs_search; read sabsus_get_master_prompt topic=automations for diagnosis. This operation sets isActive=false and preserves all nodes, links, credentials and other configuration fields. It cannot accept a graph or activation request and never executes Flow. Requires company-wide automations.update. Read flows_get_metadata again after commit to obtain the new revision.

Параметры запроса
flowId
Native Flow identifier returned by discovery or draft creation; company is resolved by the server. обязательно по схеме · string · до символов 160
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
metadata
Only supplied metadata fields change. Node arrays, credentials and execution configuration are not accepted. обязательно по схеме · object
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
Поля и технические схемы
Входные поля и поля ответа flows_update
Вход · 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."
    },
    "expectedRevision": {
      "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."
    },
    "metadata": {
      "type": "object",
      "properties": {
        "name": {
          "description": "Replacement native localized names, when supplied.",
          "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
          }
        },
        "comment": {
          "description": "Replacement comment, including empty string to clear.",
          "type": "string",
          "maxLength": 4000
        },
        "tag": {
          "description": "Replacement tag, including empty string to clear.",
          "type": "string",
          "maxLength": 300
        }
      },
      "additionalProperties": false,
      "description": "Only supplied metadata fields change. Node arrays, credentials and execution configuration are not accepted."
    },
    "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": [
    "flowId",
    "expectedRevision",
    "metadata",
    "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
}