You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/references/api/endpoint.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ const result = ApiEndpointSchema.parse(data);
36
36
|**summary**|`string`| optional ||
37
37
|**description**|`string`| optional ||
38
38
|**type**|`Enum<'flow' \| 'script' \| 'object_operation' \| 'proxy'>`| ✅ | Implementation type — only 'object_operation' and 'flow' EXECUTE in 17.x. 'script' and 'proxy' stay in the frozen vocabulary (#5040) and are rejected at publish, not parsed and ignored: express script logic as a flow whose script node runs your registered function, and an outbound call as a flow using a declared connector |
39
-
|**target**|`string`|✅| Target Flow ID or Script Name or Proxy URL, per`type` — but only the Flow ID is reachable in 17.x, since publish rejects `type: 'script'` and `type: 'proxy'` (an `object_operation`endpoint is addressed by `objectParams.object` / `.operation`; neither the publish gate nor the executor reads `target`for that type)|
39
+
|**target**|`string`|optional| Target Flow ID, per `type` — REQUIRED at publish for`type: 'flow'` (the gate refuses a flow endpoint that names no target flow) and UNREAD for `type: 'object_operation'`, so do not write it there: that endpoint is addressed by `objectParams.object` / `.operation`, and a `target` beside them is a dead string nothing checks against `objectParams.object` (#10338 made the key optional for exactly that reason). The vocabulary's other spellings — a Script Name or Proxy URL — stay unreachable in 17.x, since publish rejects `type: 'script'` and `type: 'proxy'`|
40
40
|**objectParams**|`{ object?: string; operation?: Enum<'find' \| 'get' \| 'create' \| 'update' \| 'delete'> }`| optional | For object_operation type |
41
41
|**inputMapping**|`{ source: string; target: string; transform?: string }[]`| optional | Map Request Body to Internal Params |
42
42
|**outputMapping**|`{ source: string; target: string; transform?: string }[]`| optional | Map Internal Result to Response Body |
0 commit comments