Автоматизации · Изменение
Flow · Активация
flows_activate
Попробуйте три запроса
Подготовить
- Вы указываетеСценарий
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Flow / Активация». Для изменения нужны сценарий, testRequestIds. Покажи объект и ожидаемый эффект до выполнения.
- flowId
- Сценарий
- testRequestIds
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Flow / Активация» с параметром flowId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- flowId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Flow / Активация» по исходному ответу. Покажи сценарий, appliedFromRevision. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Activate a DISABLED native Flow only after recent valid safe tests at the exact current revision cover every enabled node. Current company-wide Flow authority and all test receipts are checked in the same Firestore transaction as isActive=true. This action does not invoke a handler directly; native triggers can execute after activation.
Параметры запроса
- flowId
- Native Flow in the verified company. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- testRequestIds
- Recent valid flows_test receipts from this same account and client, covering every enabled node at this revision. обязательно по схеме · array · до элементов 20
Что вернёт команда
- flowId
- Native Flow changed in the verified company. обязательно по схеме · string
- appliedFromRevision
- Exact current native Flow revision returned by flows_get_metadata. обязательно по схеме · string
- active
- Native parent isActive after the atomic change. обязательно по схеме · boolean
- testCount
- Number of safe test receipts checked for activation; zero for deactivation. обязательно по схеме · integer · минимум 0 · максимум 20
- directExecutionStarted
- The Action changes configuration only; enabled triggers may subsequently run in the native runtime. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"flowId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native Flow in the verified company."
},
"expectedRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact current native Flow revision returned by flows_get_metadata."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable idempotency key for this exact activation change."
},
"testRequestIds": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable idempotency key for this exact activation change."
},
"description": "Recent valid flows_test receipts from this same account and client, covering every enabled node at this revision."
}
},
"required": [
"flowId",
"expectedRevision",
"requestId",
"testRequestIds"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"flowId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native Flow changed in the verified company."
},
"appliedFromRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact current native Flow revision returned by flows_get_metadata."
},
"active": {
"type": "boolean",
"description": "Native parent isActive after the atomic change."
},
"testCount": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"description": "Number of safe test receipts checked for activation; zero for deactivation."
},
"directExecutionStarted": {
"type": "boolean",
"const": false,
"description": "The Action changes configuration only; enabled triggers may subsequently run in the native runtime."
}
},
"required": [
"flowId",
"appliedFromRevision",
"active",
"testCount",
"directExecutionStarted"
],
"additionalProperties": false
}