29 "description": "Step name. If supplied, it must match the task label, optionally followed by a number in parentheses (for example, `Run code (1)`). Omit or set to null to let Flow generate it.",
30 "type": [
31 "string",
32 "null"
33 ]
34 },
35 "step_id": {
36 "description": "Identifier for this step, unique within the workflow and referenced by links. For example, `order_created`.",
37 "type": [
38 "integer",
39 "string"
40 ]
41 },
42 "task_type": {
43 "type": "string",
44 "enum": [
45 "TRIGGER",
46 "CONDITION",
47 "ACTION",
48 "WAIT",
49 "FOREACH"
50 ]
51 },
52 "config_field_values": {
53 "description": "Configuration values for this step’s task. Use the task’s configuration field definitions to find field IDs and expected value formats.",
54 "type": "array",
55 "items": {
56 "type": [
57 "object",
58 "null"
59 ],
60 "properties": {
61 "config_field_id": {
62 "type": "string"
63 },
64 "value": {
65 "type": [
66 "string",
67 "null"
68 ]
69 }
70 },
71 "required": [
72 "config_field_id",
73 "value"
74 ]
75 }
76 },
77 "task_id": {
78 "type": "string"
79 }
80 },
81 "required": [
82 "task_type",
83 "config_field_values",
84 "task_id"
85 ]
86 }
87 },
88 "links": {
89 "type": "array",
90 "items": {
91 "description": "Connects two steps using `from_step_id`, `from_port_id`, and `to_step_id`. Step IDs reference entries in `steps`; the port identifies the source step’s outgoing branch.",
92 "type": "object",
93 "examples": [
94 {
95 "from_step_id": "order_created",
96 "from_port_id": "output",
97 "to_step_id": "add_tags"
98 }
99 ]
100 }
101 },
102 "patched_fields": {
103 "description": "Makes fields requiring arguments, such as metafields, available in workflow expressions under a chosen handle.",