create_flow
Create a Power Automate cloud flow from a workflow definition, enabling automation by provisioning new flows with specified triggers and actions.
Instructions
Create a new cloud flow from a workflow definition (POST .../flows) [DISABLED: set ENABLE_WRITE_OPS=true]. Parameters: displayName (required); definition (required — the workflow definition JSON with $schema, triggers, actions); connectionReferences (optional); state (Started|Stopped, default Stopped); environment (optional). Returns the created flow. Authoring a valid definition is non-trivial — use get_flow on an existing flow as a template. Connection-dependent actions also need matching connectionReferences. Uses Microsoft's unofficial api.flow.microsoft.com endpoint, which Microsoft labels unsupported; behavior may change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Initial state (default Stopped). | |
| definition | Yes | Workflow definition JSON: $schema, contentVersion, parameters, triggers, actions. Accepts a JSON object or a JSON string. | |
| displayName | Yes | Display name for the new flow. | |
| environment | No | Environment id (from list_environments). Omit to use the user's default environment. | |
| connectionReferences | No | Connection references the definition uses (match get_flow's connectionReferences shape). Accepts a JSON object or a JSON string. |