@celigo/api-specs 0.2.3 → 0.2.4-IO-168454-EPIC-fb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -80
- package/dist/account.yml +456 -55
- package/dist/agent.yml +15 -0
- package/dist/ai-agent.yml +1000 -192
- package/dist/alert.yml +1226 -0
- package/dist/api.yml +6375 -178
- package/dist/apim.yml +0 -4
- package/dist/asynchelper.yml +441 -62
- package/dist/audit.yml +57 -2
- package/dist/bartendertemplate.yml +508 -0
- package/dist/connection.yml +2533 -189
- package/dist/connector.yml +8 -0
- package/dist/ediprofile.yml +15 -0
- package/dist/editransaction.yml +250 -14
- package/dist/enduser.yml +6063 -47
- package/dist/environment.yml +8 -0
- package/dist/eventreport.yml +8 -0
- package/dist/export.yml +1624 -1804
- package/dist/filedefinition.yml +47 -0
- package/dist/filedefinitionrules.yml +722 -0
- package/dist/fileserver.yml +1457 -0
- package/dist/filestorage.yml +1087 -535
- package/dist/flow.yml +896 -209
- package/dist/guardrail.yml +310 -499
- package/dist/httpconnector.yml +8 -0
- package/dist/httpconnectorendpoint.yml +610 -126
- package/dist/httpconnectorresource.yml +1160 -84
- package/dist/iclient.yml +245 -114
- package/dist/import.yml +2583 -448
- package/dist/integration.yml +1114 -45
- package/dist/job.yml +188 -92
- package/dist/lookupcache.yml +45 -14
- package/dist/marketplace.yml +352 -107
- package/dist/mcp-oauth-provider.yml +15 -30
- package/dist/mcp-server.yml +7004 -68
- package/dist/networkpolicy.yml +1221 -0
- package/dist/notification.yml +59 -9
- package/dist/processor.yml +8 -3
- package/dist/recyclebin.yml +32 -2
- package/dist/script.yml +91 -16
- package/dist/stack.yml +642 -5
- package/dist/storagequery.yml +935 -0
- package/dist/subscription.yml +428 -67
- package/dist/sync.yml +435 -79
- package/dist/tag.yml +8 -0
- package/dist/template.yml +47 -1
- package/dist/tool.yml +7932 -3273
- package/dist/topic.yml +1806 -0
- package/dist/tradingpartnerconnector.yml +18 -0
- package/dist/user.yml +465 -42
- package/package.json +13 -1
- package/schemas.json +2358 -1887
package/dist/flow.yml
CHANGED
|
@@ -63,10 +63,14 @@ paths:
|
|
|
63
63
|
- name: name
|
|
64
64
|
in: query
|
|
65
65
|
description: |-
|
|
66
|
-
Filter
|
|
67
|
-
|
|
66
|
+
Filter to flows whose name contains this value — a case-insensitive
|
|
67
|
+
substring match, not an exact match; regex metacharacters match
|
|
68
|
+
literally and surrounding whitespace is trimmed. An empty value is
|
|
69
|
+
ignored; a value longer than the maximum is rejected with 400
|
|
70
|
+
`invalid_query_param`.
|
|
68
71
|
schema:
|
|
69
72
|
type: string
|
|
73
|
+
maxLength: 150
|
|
70
74
|
examples:
|
|
71
75
|
- Order
|
|
72
76
|
- name: disabled
|
|
@@ -166,7 +170,9 @@ paths:
|
|
|
166
170
|
logging:
|
|
167
171
|
mode: accountLevel
|
|
168
172
|
'204':
|
|
169
|
-
description: No flows
|
|
173
|
+
description: No flows match — the account has none, or the filters excluded every flow.
|
|
174
|
+
'400':
|
|
175
|
+
$ref: '#/components/responses/400-bad-request'
|
|
170
176
|
'401':
|
|
171
177
|
$ref: '#/components/responses/401-unauthorized'
|
|
172
178
|
post:
|
|
@@ -181,11 +187,19 @@ paths:
|
|
|
181
187
|
abstract/instance patterns, create the abstract flow first, then create instances with
|
|
182
188
|
`_abstractFlowId`.
|
|
183
189
|
|
|
184
|
-
When `_integrationId` is omitted
|
|
190
|
+
When `_integrationId` is omitted or `null`, the flow is auto-assigned to the
|
|
185
191
|
account's "Standalone flows" integration rather than left standalone.
|
|
186
192
|
If that migration integration does not exist on the account, the
|
|
187
|
-
request fails with `422 standalone_flows_not_supported`.
|
|
188
|
-
|
|
193
|
+
request fails with `422 standalone_flows_not_supported`. A value that is
|
|
194
|
+
not a well-formed ObjectId is rejected with `400 invalid_ref` before the
|
|
195
|
+
flow is validated, and an id that names no integration in the account
|
|
196
|
+
fails with `422 invalid_ref`. Always pass an explicit `_integrationId`.
|
|
197
|
+
|
|
198
|
+
`schedule` is validated on every write even when `disabled` is true, so a
|
|
199
|
+
disabled flow cannot be parked with a broken schedule: `422 invalid_value`
|
|
200
|
+
when the expression cannot be parsed into a schedule, `422
|
|
201
|
+
schedule_not_supported` when its runs would be less than a minute apart
|
|
202
|
+
(which is also what free text produces).
|
|
189
203
|
operationId: createFlow
|
|
190
204
|
tags:
|
|
191
205
|
- Flows
|
|
@@ -404,7 +418,7 @@ paths:
|
|
|
404
418
|
summary: Patch a flow
|
|
405
419
|
description: |-
|
|
406
420
|
Partially updates a flow using a JSON Patch document (RFC 6902).
|
|
407
|
-
|
|
421
|
+
`replace`, `add`, and `remove` operations are accepted only on the following
|
|
408
422
|
whitelisted paths:
|
|
409
423
|
|
|
410
424
|
| Path | Description |
|
|
@@ -416,13 +430,12 @@ paths:
|
|
|
416
430
|
| `/logging/mode` | Logging mode |
|
|
417
431
|
| `/runPageGeneratorsInParallel` | Run page generators in parallel |
|
|
418
432
|
| `/aiDescription` | AI-generated description object |
|
|
419
|
-
| `/schedule
|
|
420
|
-
| `/
|
|
421
|
-
| `/schedule/endDate` | Schedule end date |
|
|
422
|
-
| `/schedule/days` | Schedule days |
|
|
423
|
-
| `/schedule/cron` | Cron expression |
|
|
433
|
+
| `/schedule` | Celigo 6-field cron string (same as PUT `schedule`) |
|
|
434
|
+
| `/timezone` | IANA timezone string |
|
|
424
435
|
|
|
425
|
-
All other paths are rejected with 422
|
|
436
|
+
All other paths are rejected with 422, except pointers nested under `/schedule`
|
|
437
|
+
(such as `/schedule/cron`): `schedule` is a string, so those return 204 and change
|
|
438
|
+
nothing. Send the whole cron string to `/schedule` instead.
|
|
426
439
|
|
|
427
440
|
PATCH is safer than PUT for toggling `disabled` or arming debug logging because it won't
|
|
428
441
|
accidentally reset other fields. To arm debug logging, `replace` `/logging/debugUntil` with
|
|
@@ -462,11 +475,11 @@ paths:
|
|
|
462
475
|
path: /logging/debugUntil
|
|
463
476
|
value: '2026-05-02T16:00:00.000Z'
|
|
464
477
|
update_schedule:
|
|
465
|
-
summary: Change schedule
|
|
478
|
+
summary: Change Celigo 6-field schedule cron
|
|
466
479
|
value:
|
|
467
480
|
- op: replace
|
|
468
|
-
path: /schedule
|
|
469
|
-
value: 0
|
|
481
|
+
path: /schedule
|
|
482
|
+
value: '? 5 0,6,12,18 ? * *'
|
|
470
483
|
responses:
|
|
471
484
|
'204':
|
|
472
485
|
description: Flow patched successfully.
|
|
@@ -879,6 +892,110 @@ paths:
|
|
|
879
892
|
$ref: '#/components/responses/404-not-found'
|
|
880
893
|
'422':
|
|
881
894
|
$ref: '#/components/responses/422-unprocessable-entity'
|
|
895
|
+
/v1/flows/{_flowId}/runs/stats:
|
|
896
|
+
post:
|
|
897
|
+
x-internal: false
|
|
898
|
+
operationId: getFlowRuntimeChartStats
|
|
899
|
+
tags:
|
|
900
|
+
- Flows
|
|
901
|
+
summary: Get flow runtime chart stats
|
|
902
|
+
description: |-
|
|
903
|
+
Returns historical runtime statistics and chart buckets for a single flow.
|
|
904
|
+
Used by the proactive alerts UI to suggest and preview long-runtime
|
|
905
|
+
thresholds.
|
|
906
|
+
|
|
907
|
+
This is not the job-dashboard aggregate API. Dashboard totals live at
|
|
908
|
+
`POST /v1/flows/runs/stats` (job spec). This path is
|
|
909
|
+
`POST /v1/flows/{_flowId}/runs/stats`.
|
|
910
|
+
|
|
911
|
+
Requires the proactive alerts feature flag and ClickHouse to be enabled for
|
|
912
|
+
the user. When ClickHouse is unavailable, returns
|
|
913
|
+
`{ "clickhouseAvailable": false }`.
|
|
914
|
+
|
|
915
|
+
Time range constraints:
|
|
916
|
+
- `startTime` is required (ISO 8601 UTC)
|
|
917
|
+
- `endTime` defaults to now when omitted
|
|
918
|
+
- Minimum range: 1 hour
|
|
919
|
+
- Maximum range: 90 days
|
|
920
|
+
- Granularity: hourly buckets for ranges ≤ 24h; daily buckets for longer ranges
|
|
921
|
+
|
|
922
|
+
Chart `alertsTriggered` / `totalAlertsTriggered` count completed runs whose
|
|
923
|
+
runtime is **strictly greater than** the threshold used for the query.
|
|
924
|
+
That is a historical chart count, not the number of alert emails sent.
|
|
925
|
+
parameters:
|
|
926
|
+
- name: _flowId
|
|
927
|
+
in: path
|
|
928
|
+
required: true
|
|
929
|
+
description: Flow id.
|
|
930
|
+
schema:
|
|
931
|
+
type: string
|
|
932
|
+
format: objectId
|
|
933
|
+
x-celigo-refModel: flows
|
|
934
|
+
examples:
|
|
935
|
+
- 507f1f77bcf86cd799439011
|
|
936
|
+
requestBody:
|
|
937
|
+
required: true
|
|
938
|
+
content:
|
|
939
|
+
application/json:
|
|
940
|
+
schema:
|
|
941
|
+
$ref: '#/components/schemas/FlowRunsStatsRequest'
|
|
942
|
+
examples:
|
|
943
|
+
default:
|
|
944
|
+
value:
|
|
945
|
+
type: runtimeSummary
|
|
946
|
+
startTime: '2026-05-01T00:00:00.000Z'
|
|
947
|
+
endTime: '2026-06-01T00:00:00.000Z'
|
|
948
|
+
thresholdMinutes: 45
|
|
949
|
+
responses:
|
|
950
|
+
'200':
|
|
951
|
+
description: Runtime summary, empty-state payload, or ClickHouse-unavailable marker.
|
|
952
|
+
content:
|
|
953
|
+
application/json:
|
|
954
|
+
schema:
|
|
955
|
+
$ref: '#/components/schemas/FlowRunsStatsResponse'
|
|
956
|
+
examples:
|
|
957
|
+
summary:
|
|
958
|
+
summary: Runtime summary with chart buckets
|
|
959
|
+
value:
|
|
960
|
+
_flowId: 507f1f77bcf86cd799439011
|
|
961
|
+
startTime: '2026-05-01T00:00:00.000Z'
|
|
962
|
+
endTime: '2026-06-01T00:00:00.000Z'
|
|
963
|
+
granularity: day
|
|
964
|
+
thresholdMinutes: 45
|
|
965
|
+
totalRuns: 120
|
|
966
|
+
totalAlertsTriggered: 8
|
|
967
|
+
emptyState: false
|
|
968
|
+
truncated: false
|
|
969
|
+
statistics:
|
|
970
|
+
suggestedThreshold: 45
|
|
971
|
+
chartEntries:
|
|
972
|
+
- bucket: '2026-05-01'
|
|
973
|
+
totalRuns: 10
|
|
974
|
+
alertsTriggered: 1
|
|
975
|
+
avgRuntimeMinutes: 22.5
|
|
976
|
+
p5RuntimeMinutes: 5
|
|
977
|
+
p95RuntimeMinutes: 60
|
|
978
|
+
emptyState:
|
|
979
|
+
summary: Fewer than 3 completed runs
|
|
980
|
+
value:
|
|
981
|
+
_flowId: 507f1f77bcf86cd799439011
|
|
982
|
+
startTime: '2026-05-01T00:00:00.000Z'
|
|
983
|
+
endTime: '2026-06-01T00:00:00.000Z'
|
|
984
|
+
emptyState: true
|
|
985
|
+
clickhouseUnavailable:
|
|
986
|
+
summary: ClickHouse not available
|
|
987
|
+
value:
|
|
988
|
+
clickhouseAvailable: false
|
|
989
|
+
'400':
|
|
990
|
+
$ref: '#/components/responses/400-bad-request'
|
|
991
|
+
'401':
|
|
992
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
993
|
+
'403':
|
|
994
|
+
$ref: '#/components/responses/403-forbidden'
|
|
995
|
+
'404':
|
|
996
|
+
$ref: '#/components/responses/404-not-found'
|
|
997
|
+
'422':
|
|
998
|
+
$ref: '#/components/responses/422-unprocessable-entity'
|
|
882
999
|
/v1/flows/{_id}/traceKey:
|
|
883
1000
|
get:
|
|
884
1001
|
x-internal: false
|
|
@@ -993,12 +1110,13 @@ paths:
|
|
|
993
1110
|
collection-level endpoint used by the UI's "move to section" action — it updates multiple flows in a
|
|
994
1111
|
single call rather than requiring a per-flow `PUT /v1/flows/{_id}` with a modified `_flowGroupingId`.
|
|
995
1112
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1113
|
+
Every flow in `_flowIds` must belong to the same integration, and `_flowGroupingId` must be one
|
|
1114
|
+
of that integration's `flowGroupings` — a grouping that does not exist or belongs to another
|
|
1115
|
+
integration is rejected with 400 `flowgrouping_update_error`. Pass `_flowGroupingId: null` or
|
|
1116
|
+
omit it to move the flows back to the integration's default (Unassigned) section.
|
|
999
1117
|
|
|
1000
|
-
Flow groupings are managed on the parent integration (`PUT /v1/integrations/{_id}`
|
|
1001
|
-
modified `flowGroupings[]` array) — create the group first, then call this to populate it.
|
|
1118
|
+
Flow groupings are managed on the parent integration (`PUT` or `PATCH /v1/integrations/{_id}`
|
|
1119
|
+
with a modified `flowGroupings[]` array) — create the group first, then call this to populate it.
|
|
1002
1120
|
requestBody:
|
|
1003
1121
|
required: true
|
|
1004
1122
|
content:
|
|
@@ -1022,10 +1140,37 @@ paths:
|
|
|
1022
1140
|
responses:
|
|
1023
1141
|
'204':
|
|
1024
1142
|
description: |-
|
|
1025
|
-
Flows reassigned. Empty response body.
|
|
1026
|
-
|
|
1143
|
+
Flows reassigned. Empty response body. Flow ids that match no flow in the account are
|
|
1144
|
+
silently skipped, so an unknown `_flowIds` entry (or an empty list) also answers 204.
|
|
1027
1145
|
'400':
|
|
1028
|
-
|
|
1146
|
+
description: |-
|
|
1147
|
+
The request was rejected: the flows span more than one integration (`invalid_request`),
|
|
1148
|
+
the grouping is not one of the flows' integration's `flowGroupings`
|
|
1149
|
+
(`flowgrouping_update_error`), or an id is not a well-formed ObjectId (`invalid_ref` —
|
|
1150
|
+
an empty-string `_flowGroupingId` fails this way; use `null` to ungroup).
|
|
1151
|
+
content:
|
|
1152
|
+
application/json:
|
|
1153
|
+
schema:
|
|
1154
|
+
$ref: '#/components/schemas/Error'
|
|
1155
|
+
examples:
|
|
1156
|
+
differentIntegrations:
|
|
1157
|
+
summary: Flows belong to different integrations
|
|
1158
|
+
value:
|
|
1159
|
+
errors:
|
|
1160
|
+
- code: invalid_request
|
|
1161
|
+
message: Unable to update flows for flowgrouping, since flows belongs to different integrations.
|
|
1162
|
+
groupingNotInIntegration:
|
|
1163
|
+
summary: Grouping does not exist or belongs to another integration
|
|
1164
|
+
value:
|
|
1165
|
+
errors:
|
|
1166
|
+
- code: flowgrouping_update_error
|
|
1167
|
+
message: 'Failed to update flow grouping for flow: Order sync. Error: Sorry, Failed to link flowGroupingId. FlowGrouping does not belong to Integration: 6ac1ef49fa3e52974f433c1b.'
|
|
1168
|
+
malformedGroupingId:
|
|
1169
|
+
summary: Grouping id is not an ObjectId (including an empty string)
|
|
1170
|
+
value:
|
|
1171
|
+
errors:
|
|
1172
|
+
- code: invalid_ref
|
|
1173
|
+
message: Please provide a valid _flowGroupingId.
|
|
1029
1174
|
'401':
|
|
1030
1175
|
$ref: '#/components/responses/401-unauthorized'
|
|
1031
1176
|
'404':
|
|
@@ -2799,12 +2944,13 @@ paths:
|
|
|
2799
2944
|
Returns one page of execution-log entries for a specific flow run — one entry per record-at-step
|
|
2800
2945
|
(export or import). Entries carry the `(_expOrImpId, groupId, recordId, traceKey)` tuple needed to
|
|
2801
2946
|
drill into per-stage metadata and data via the `logs/metadata/query` and `logs/data/query` endpoints.
|
|
2947
|
+
A ToolImport appears as one row per record; open the steps inside it with `logs/metadata/query`.
|
|
2802
2948
|
|
|
2803
2949
|
Execution logs are populated only when the flow has logging enabled (either full `logMode` or the
|
|
2804
2950
|
time-bounded `logging.debugUntil` debug window). Jobs older than the flow's log retention window will
|
|
2805
2951
|
return an empty `logs` array.
|
|
2806
2952
|
|
|
2807
|
-
For detailed per-stage data (HTTP request/response,
|
|
2953
|
+
For detailed per-stage data (HTTP request/response, hook input/output), pick an
|
|
2808
2954
|
entry and call `POST .../logs/data/query` with the corresponding `stage`. To stitch an
|
|
2809
2955
|
export entry to its downstream imports, use the `traceKey` with
|
|
2810
2956
|
`POST .../logs/metadata/query`.
|
|
@@ -2842,7 +2988,9 @@ paths:
|
|
|
2842
2988
|
- name: _expOrImpId
|
|
2843
2989
|
in: query
|
|
2844
2990
|
required: false
|
|
2845
|
-
description:
|
|
2991
|
+
description: |-
|
|
2992
|
+
Comma-separated list of export or import step ids. Only entries produced by these steps are returned.
|
|
2993
|
+
Use the outermost ToolImport id for a Tool; a nested ToolImport id matches no rows.
|
|
2846
2994
|
schema:
|
|
2847
2995
|
type: string
|
|
2848
2996
|
- name: traceKeyPrefix
|
|
@@ -2923,13 +3071,15 @@ paths:
|
|
|
2923
3071
|
the source export plus its downstream imports.
|
|
2924
3072
|
|
|
2925
3073
|
Pull the `_expOrImpId`, `groupId`, `recordId`, and (optionally) `traceKey` values from a
|
|
2926
|
-
`GET /v1/flows/{_id}/jobs/{_jobId}/logs` entry.
|
|
3074
|
+
`GET /v1/flows/{_id}/jobs/{_jobId}/logs` entry. To open the steps inside a ToolImport
|
|
3075
|
+
without a trace key, send `_toolImportId` with `recordId`.
|
|
2927
3076
|
|
|
2928
3077
|
Pair this with `logs/data/query` to build a full per-record trace: this endpoint shows which
|
|
2929
3078
|
steps were touched and timing; the data endpoint returns actual payloads. When
|
|
2930
3079
|
`duplicateTraceKey` is `true`, the traceKey was seen on more than one record in the job, so
|
|
2931
3080
|
results may mix records from retries or fan-out. Without `traceKey` in the request,
|
|
2932
|
-
`traceView` is `false` and only the
|
|
3081
|
+
`traceView` is `false` and only the queried step is returned — or, with `_toolImportId`,
|
|
3082
|
+
that Tool's chain.
|
|
2933
3083
|
parameters:
|
|
2934
3084
|
- name: _id
|
|
2935
3085
|
in: path
|
|
@@ -2967,6 +3117,12 @@ paths:
|
|
|
2967
3117
|
groupId: 1WsTiyxQ
|
|
2968
3118
|
recordId: CMeN0hDc
|
|
2969
3119
|
traceKey: '0'
|
|
3120
|
+
tool_chain:
|
|
3121
|
+
summary: One Tool's chain, without a group id
|
|
3122
|
+
value:
|
|
3123
|
+
_expOrImpId: 60a2c4e6f321d800129a1a3c
|
|
3124
|
+
_toolImportId: 60a2c4e6f321d800129a1a3c
|
|
3125
|
+
recordId: rtool001
|
|
2970
3126
|
responses:
|
|
2971
3127
|
'200':
|
|
2972
3128
|
description: Step metadata (or a trace across paired steps when `traceKey` was supplied).
|
|
@@ -2996,6 +3152,30 @@ paths:
|
|
|
2996
3152
|
timeTaken: 1232
|
|
2997
3153
|
startedAt: '2026-04-23 02:51:51.111'
|
|
2998
3154
|
completedAt: '2026-04-23 02:51:52.343'
|
|
3155
|
+
tool_chain:
|
|
3156
|
+
summary: Collapsed Tool node plus one internal step
|
|
3157
|
+
value:
|
|
3158
|
+
duplicateTraceKey: false
|
|
3159
|
+
traceView: false
|
|
3160
|
+
steps:
|
|
3161
|
+
- _expOrImpId: 60a2c4e6f321d800129a1a3c
|
|
3162
|
+
_toolImportId: 60a2c4e6f321d800129a1a3c
|
|
3163
|
+
recordId: rtool001
|
|
3164
|
+
groupId: g1in0001
|
|
3165
|
+
outputGroupId: g1out001
|
|
3166
|
+
status: success
|
|
3167
|
+
timeTaken: 1200
|
|
3168
|
+
startedAt: '2026-04-23 02:51:45.066'
|
|
3169
|
+
completedAt: '2026-04-23 02:51:46.810'
|
|
3170
|
+
- _expOrImpId: 69a9aa5c54e3d9bd11b86d82
|
|
3171
|
+
_toolImportId: 60a2c4e6f321d800129a1a3c
|
|
3172
|
+
recordId: rtool001
|
|
3173
|
+
groupId: gint0001
|
|
3174
|
+
status: error
|
|
3175
|
+
stage: apiCall
|
|
3176
|
+
timeTaken: 400
|
|
3177
|
+
startedAt: '2026-04-23 02:51:45.400'
|
|
3178
|
+
completedAt: '2026-04-23 02:51:45.800'
|
|
2999
3179
|
single_step:
|
|
3000
3180
|
summary: Response when the request omitted `traceKey`
|
|
3001
3181
|
value:
|
|
@@ -3024,21 +3204,23 @@ paths:
|
|
|
3024
3204
|
summary: Get per-stage execution log data for a record
|
|
3025
3205
|
description: |-
|
|
3026
3206
|
Returns the decoded log data (typically request/response bodies, transform input/output, or script
|
|
3027
|
-
|
|
3207
|
+
hook input/output) for a single `(step, stage)` tuple within a flow run.
|
|
3028
3208
|
|
|
3029
3209
|
Stages are bubble-kind specific. The most useful values:
|
|
3030
3210
|
- **Export / Lookup:** `apiCall` (HTTP request+response for HTTP exports), `transformation`,
|
|
3031
|
-
`outputFilter`, `responseMapping`.
|
|
3032
|
-
- **Import:** `apiCall`, `mapping`, `
|
|
3211
|
+
`outputFilter`, `preSavePageHook`; lookups also `responseMapping`, `postResponseMapHook`.
|
|
3212
|
+
- **Import:** `apiCall`, `inputFilter`, `mapping`, `responseTransformation`, `preMapHook`,
|
|
3213
|
+
`postMapHook`, `postSubmitHook`.
|
|
3033
3214
|
- **Router:** `routing` (branching decision).
|
|
3034
|
-
- **
|
|
3035
|
-
`
|
|
3036
|
-
`
|
|
3215
|
+
- **ToolImport:** `tool` composes the record entering the Tool (`log.input`) and the record
|
|
3216
|
+
entering output validation (`log.output`, omitted until that pass completes). For the
|
|
3217
|
+
outermost Tool, set `_toolImportId` equal to `_expOrImpId`. For a Tool nested inside
|
|
3218
|
+
another Tool, omit `_toolImportId`. `groupId` is ignored. To drill into one side, query
|
|
3219
|
+
a real stage (for example `schemaValidation`) with that side's `groupId` from the trace.
|
|
3037
3220
|
|
|
3038
3221
|
This is typically the terminal call in the drill-down sequence: `execution-logs` then
|
|
3039
3222
|
`metadata/query` then `data/query`. For HTTP traces, set `stage: apiCall`. A 200 with
|
|
3040
|
-
`logs: []` means
|
|
3041
|
-
call `options.logs.push()`, or the stage is not instrumented for that adaptor.
|
|
3223
|
+
`logs: []` means no log entry was stored for that stage and record.
|
|
3042
3224
|
parameters:
|
|
3043
3225
|
- name: _id
|
|
3044
3226
|
in: path
|
|
@@ -3070,13 +3252,20 @@ paths:
|
|
|
3070
3252
|
groupId: 69e981ee18808f3e5ed1b2fd
|
|
3071
3253
|
recordId: '0'
|
|
3072
3254
|
stage: apiCall
|
|
3073
|
-
|
|
3074
|
-
summary: Fetch
|
|
3255
|
+
post_map_hook:
|
|
3256
|
+
summary: Fetch the input and output of a postMap script hook
|
|
3075
3257
|
value:
|
|
3076
3258
|
_expOrImpId: 69a9aa5d3b213b3ac975e8d2
|
|
3077
3259
|
groupId: 69e981ee18808f3e5ed1b2fd
|
|
3078
3260
|
recordId: '0'
|
|
3079
|
-
stage:
|
|
3261
|
+
stage: postMapHook
|
|
3262
|
+
tool_import:
|
|
3263
|
+
summary: Composed input and output for an outermost ToolImport
|
|
3264
|
+
value:
|
|
3265
|
+
_expOrImpId: 60a2c4e6f321d800129a1a3c
|
|
3266
|
+
_toolImportId: 60a2c4e6f321d800129a1a3c
|
|
3267
|
+
recordId: rtool001
|
|
3268
|
+
stage: tool
|
|
3080
3269
|
responses:
|
|
3081
3270
|
'200':
|
|
3082
3271
|
description: Log entries for the requested `(step, stage)`.
|
|
@@ -3100,8 +3289,23 @@ paths:
|
|
|
3100
3289
|
response:
|
|
3101
3290
|
statusCode: 200
|
|
3102
3291
|
errors: []
|
|
3103
|
-
|
|
3104
|
-
summary:
|
|
3292
|
+
tool_import:
|
|
3293
|
+
summary: ToolImport input and output after both passes
|
|
3294
|
+
value:
|
|
3295
|
+
logs:
|
|
3296
|
+
- log:
|
|
3297
|
+
stage: tool
|
|
3298
|
+
recordId: rtool001
|
|
3299
|
+
groupId: g1in0001
|
|
3300
|
+
outputGroupId: g1out001
|
|
3301
|
+
input:
|
|
3302
|
+
orderId: 815
|
|
3303
|
+
output:
|
|
3304
|
+
orderId: 815
|
|
3305
|
+
confirmationCode: CONF-789
|
|
3306
|
+
errors: []
|
|
3307
|
+
empty_no_log_entry:
|
|
3308
|
+
summary: Stage with no stored log entry for the record
|
|
3105
3309
|
value:
|
|
3106
3310
|
logs: []
|
|
3107
3311
|
errors: []
|
|
@@ -3748,23 +3952,33 @@ paths:
|
|
|
3748
3952
|
summary: Preview the output of a flow's page processor
|
|
3749
3953
|
description: |-
|
|
3750
3954
|
Runs a flow's page generators and page processors through the preview
|
|
3751
|
-
pipeline and returns the record arriving at
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3955
|
+
pipeline and returns the record arriving at one page-processor node,
|
|
3956
|
+
with the upstream chain applied server-side. A target IMPORT obeys its
|
|
3957
|
+
map entry's options flag: `{preview: true}` composes the request
|
|
3958
|
+
without sending; `{sendAndPreview: true}` (the import editor's "Send"
|
|
3959
|
+
button) executes it against the live destination — a real write — and
|
|
3960
|
+
stops at the parsed response (the target's postSubmit hook does not
|
|
3961
|
+
run). Both composing modes serve HTTP import targets only: a NetSuite,
|
|
3962
|
+
Salesforce, RDBMS or FTP target answers `422 no_data_available` ("You
|
|
3963
|
+
must add at least one mock input record…") whatever records the chain
|
|
3964
|
+
delivers — the generic "no record reached the target", not a data
|
|
3965
|
+
problem; execute such a step as a virtual import instead
|
|
3966
|
+
(`POST /v1/connections/{_id}/import`). No options flag returns the
|
|
3967
|
+
arriving record for any adaptor without touching the target.
|
|
3968
|
+
|
|
3969
|
+
Upstream behavior: the source export executes live (transform, output
|
|
3970
|
+
filter and preSavePage hook applied); router branch filters and step
|
|
3971
|
+
input filters gate the records; upstream lookups execute live unless a
|
|
3972
|
+
saved `mockOutput` is present (a saved mock always wins); upstream
|
|
3973
|
+
imports are NEVER executed — each substitutes its saved `mockResponse`,
|
|
3974
|
+
or a platform placeholder when none is saved, before its response
|
|
3975
|
+
mapping and postResponseMap hook run. A target LOOKUP executes its
|
|
3976
|
+
live query even when it carries a saved `mockOutput` (the mock
|
|
3977
|
+
substitutes only upstream). When a target import's `failPath` rules
|
|
3978
|
+
judge the destination's answer a failure, the response is `422` whose
|
|
3979
|
+
`errors[]` carry `source: application` and `stage: apiCall` — the
|
|
3980
|
+
request did execute. With `includeStages: false` the response is the
|
|
3981
|
+
bare result object rather than the `{data, stages}` envelope.
|
|
3768
3982
|
|
|
3769
3983
|
Body carries the flow shape plus resolved maps of page-generator and
|
|
3770
3984
|
page-processor docs keyed by `_id`. The server uses those maps as the
|
|
@@ -3790,15 +4004,15 @@ paths:
|
|
|
3790
4004
|
preview_import_step:
|
|
3791
4005
|
summary: Preview the import step of a one-generator flow
|
|
3792
4006
|
value:
|
|
3793
|
-
|
|
4007
|
+
flow:
|
|
3794
4008
|
name: 'Accounts: HubSpot to NetSuite'
|
|
3795
4009
|
pageGenerators:
|
|
3796
4010
|
- _exportId: 652583cf9085040ecbf54303
|
|
3797
4011
|
pageProcessors:
|
|
3798
4012
|
- type: import
|
|
3799
4013
|
_importId: 6508ab8b20b16404da729c64
|
|
4014
|
+
_selectedPageGeneratorId: 652583cf9085040ecbf54303
|
|
3800
4015
|
_pageProcessorId: 6508ab8b20b16404da729c64
|
|
3801
|
-
_selectedPageGeneratorId: 652583cf9085040ecbf54303
|
|
3802
4016
|
pageGeneratorMap:
|
|
3803
4017
|
652583cf9085040ecbf54303:
|
|
3804
4018
|
doc:
|
|
@@ -3810,8 +4024,8 @@ paths:
|
|
|
3810
4024
|
6508ab8b20b16404da729c64:
|
|
3811
4025
|
doc:
|
|
3812
4026
|
_id: 6508ab8b20b16404da729c64
|
|
3813
|
-
name: Upsert
|
|
3814
|
-
adaptorType:
|
|
4027
|
+
name: Upsert customers in the destination API
|
|
4028
|
+
adaptorType: HTTPImport
|
|
3815
4029
|
options:
|
|
3816
4030
|
preview: true
|
|
3817
4031
|
includeStages: true
|
|
@@ -3864,6 +4078,39 @@ paths:
|
|
|
3864
4078
|
message: 'The pageGenerator doc corresponding to the _id: is not found in the given pageGeneratorMap.'
|
|
3865
4079
|
'401':
|
|
3866
4080
|
$ref: '#/components/responses/401-unauthorized'
|
|
4081
|
+
'422':
|
|
4082
|
+
description: |-
|
|
4083
|
+
Two distinct meanings, told apart by `errors[].source`:
|
|
4084
|
+
`no_data_available` with `source: integrator` — no record reached
|
|
4085
|
+
the target in a composing mode (the target is a NetSuite,
|
|
4086
|
+
Salesforce, RDBMS or FTP import, which these modes cannot drive, or
|
|
4087
|
+
the chain's gates dropped every record); `source: application` with
|
|
4088
|
+
`stage: apiCall` after `sendAndPreview` — the request DID execute
|
|
4089
|
+
and the target import's `failPath` rules judged the destination's
|
|
4090
|
+
answer a failure; `message` carries the destination's response body
|
|
4091
|
+
and `code` its HTTP status.
|
|
4092
|
+
content:
|
|
4093
|
+
application/json:
|
|
4094
|
+
schema:
|
|
4095
|
+
$ref: '#/components/schemas/Error'
|
|
4096
|
+
examples:
|
|
4097
|
+
noRecordReachedTarget:
|
|
4098
|
+
summary: Composing mode on a non-HTTP target, or every record gated out
|
|
4099
|
+
value:
|
|
4100
|
+
errors:
|
|
4101
|
+
- code: no_data_available
|
|
4102
|
+
source: integrator
|
|
4103
|
+
message: You must add at least one mock input record. If you still get this error after adding an input record, verify that your current mapping configuration isn't ignoring all record output. Mock input records must pass through the input filter and hooks to qualify for Preview and Send.
|
|
4104
|
+
failPathTripped:
|
|
4105
|
+
summary: sendAndPreview executed; the target's failPath rules judged the 200 a failure
|
|
4106
|
+
description: |-
|
|
4107
|
+
The live error also carries `stage: apiCall`, `classification`,
|
|
4108
|
+
`resolved` and `occurredAt` beside the fields shown.
|
|
4109
|
+
value:
|
|
4110
|
+
errors:
|
|
4111
|
+
- code: 200
|
|
4112
|
+
source: application
|
|
4113
|
+
message: '{"args":{},"json":{"FirstName":"FAILME"}}'
|
|
3867
4114
|
/v1/flows/{_id}/dependencies:
|
|
3868
4115
|
get:
|
|
3869
4116
|
x-internal: false
|
|
@@ -4078,20 +4325,48 @@ components:
|
|
|
4078
4325
|
extracts evaluate against that envelope:
|
|
4079
4326
|
|
|
4080
4327
|
- **Lookup steps**: `{"statusCode": 200, "data": [<result records>],
|
|
4081
|
-
"errors": []}` — `data` holds the records the lookup
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4328
|
+
"errors": []}` — `data` holds the records the lookup step returns,
|
|
4329
|
+
AFTER the export's own `transform` and output `filter` have run, so
|
|
4330
|
+
extracts must start from it and name transformed fields by their
|
|
4331
|
+
transformed name: `data[0].name` copies a field of the first result,
|
|
4332
|
+
`data` copies the whole result array. A bare result-record field name
|
|
4333
|
+
(e.g. `name`) resolves to nothing and merges nothing, and so does the
|
|
4334
|
+
raw response path a transform consumed.
|
|
4086
4335
|
- **Import steps**: `{"id": "<destination record id>", "statusCode": 200,
|
|
4087
|
-
"ignored": false, "errors": [], "_json": <raw destination response
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4336
|
+
"ignored": false, "errors": [], "_json": <raw destination response>,
|
|
4337
|
+
...<response body fields flattened at the root>}` — use `id` for the
|
|
4338
|
+
destination-assigned id and `_json.<path>` (or the flattened
|
|
4339
|
+
`<path>`) for fields inside the destination's response body. The full
|
|
4340
|
+
envelope (including `id`) is present on real runs and in flow-builder
|
|
4341
|
+
previews; flow TEST runs never execute imports, and their mock-built
|
|
4342
|
+
envelope carries no `id` — an `extract: "id"` merges nothing in a test
|
|
4343
|
+
run even though it works on real runs.
|
|
4344
|
+
|
|
4345
|
+
An `extract` may also be a Handlebars expression. It evaluates against
|
|
4346
|
+
the same envelope as a plain path, so every path inside `{{ }}` starts
|
|
4347
|
+
where the plain paths start — `{{data.0.name}}`,
|
|
4348
|
+
`{{#compare data.0.count "==" 1}}yes{{else}}no{{/compare}}`,
|
|
4349
|
+
`{{#if data.length}}found{{/if}}` on a lookup; `{{_json.order.id}}` or
|
|
4350
|
+
`{{id}}` on an import. Index arrays with dots inside Handlebars
|
|
4351
|
+
(`data.0.name` or `data.[0].name`; `data[0].name` renders nothing), and
|
|
4352
|
+
expect a string result (`"1"`, `"false"`). There is no `record` object in
|
|
4353
|
+
this context: `{{record.<anything>}}` renders nothing. Prefer a plain
|
|
4354
|
+
path when the value is simply copied.
|
|
4094
4355
|
x-celigo-ai-guidance:
|
|
4356
|
+
- |-
|
|
4357
|
+
Handlebars is allowed in `extract` but only rooted at the envelope —
|
|
4358
|
+
`{{data.0.x}}` on a lookup, `{{_json.x}}` / `{{id}}` on an import. The
|
|
4359
|
+
`record.` root belongs to import-mapping templates; here every
|
|
4360
|
+
`{{record.…}}` form renders nothing, silently, and `{{data[0].x}}`
|
|
4361
|
+
(bracket index inside Handlebars) renders nothing too. Use Handlebars
|
|
4362
|
+
only for a derived value (a flag, a concatenation); copy values with a
|
|
4363
|
+
plain path.
|
|
4364
|
+
- |-
|
|
4365
|
+
A lookup's `data[]` is the step's output after its `transform` and
|
|
4366
|
+
`filter`, so author extracts against the transformed records — never
|
|
4367
|
+
against the raw response the transform consumed, and never against a
|
|
4368
|
+
saved `mockOutput` as stored (it is the raw response; the transform
|
|
4369
|
+
runs on top of it in a test run).
|
|
4095
4370
|
- |-
|
|
4096
4371
|
Send `fields` and `lists` as bare arrays, exactly as GET returns them.
|
|
4097
4372
|
Never wrap either in an object (e.g. `"fields": {"type": [...]}`): the
|
|
@@ -4133,22 +4408,29 @@ components:
|
|
|
4133
4408
|
properties:
|
|
4134
4409
|
extract:
|
|
4135
4410
|
type: string
|
|
4411
|
+
x-celigo-agent:
|
|
4412
|
+
- handlebars
|
|
4136
4413
|
description: |
|
|
4137
4414
|
Path within the canonical response envelope to copy the value
|
|
4138
|
-
from
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
`
|
|
4415
|
+
from, or a Handlebars expression over that same envelope. For
|
|
4416
|
+
lookup steps, paths start from the envelope's `data` array
|
|
4417
|
+
(`data[0].x` and `data.0.x` are equivalent; `data` alone
|
|
4418
|
+
copies every result) — a lookup result field written without
|
|
4419
|
+
the `data` prefix resolves to nothing. For import steps, use
|
|
4420
|
+
the envelope fields `id`, `statusCode`, `ignored`, `_json.<path>`
|
|
4421
|
+
for the raw response body, or the body field itself at the
|
|
4422
|
+
envelope root (`orderNumber` and `_json.orderNumber` read the
|
|
4423
|
+
same value). A `[*]` wildcard is not honored here — `data[*].x`
|
|
4424
|
+
merges nothing; iterate arrays with `lists` instead. Inside
|
|
4425
|
+
Handlebars, index with dots (`{{data.0.x}}`, never
|
|
4426
|
+
`{{data[0].x}}`) and never use a `record.` root.
|
|
4146
4427
|
examples:
|
|
4147
4428
|
- data[0].customer.name
|
|
4148
4429
|
- data.0.fields.Product Name
|
|
4149
4430
|
- data
|
|
4150
4431
|
- id
|
|
4151
4432
|
- _json.orderNumber
|
|
4433
|
+
- '{{#if data.length}}found{{else}}missing{{/if}}'
|
|
4152
4434
|
generate:
|
|
4153
4435
|
type: string
|
|
4154
4436
|
description: |
|
|
@@ -4342,14 +4624,11 @@ components:
|
|
|
4342
4624
|
name:
|
|
4343
4625
|
type: string
|
|
4344
4626
|
description: |
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
-
|
|
4349
|
-
|
|
4350
|
-
- Display in the UI
|
|
4351
|
-
|
|
4352
|
-
Should be descriptive of the branch's purpose or criteria.
|
|
4627
|
+
Label for the branch, unique within the router. On a branching router it is shown on
|
|
4628
|
+
the Flow Builder canvas, appears in logs, and is the value a routing script returns to
|
|
4629
|
+
pick the branch — make it describe the branch's purpose. The single branch of a
|
|
4630
|
+
pass-through router has no visible label; the server stores an empty string when the
|
|
4631
|
+
name is omitted.
|
|
4353
4632
|
examples:
|
|
4354
4633
|
- enterprise_customers
|
|
4355
4634
|
- high_priority
|
|
@@ -4371,7 +4650,7 @@ components:
|
|
|
4371
4650
|
description: |
|
|
4372
4651
|
Filter criteria that determines which records match this branch.
|
|
4373
4652
|
|
|
4374
|
-
Only used when the router's routeRecordsUsing
|
|
4653
|
+
Only used when the router's `routeRecordsUsing` is `input_filters`.
|
|
4375
4654
|
Records matching these criteria will be routed to this branch.
|
|
4376
4655
|
properties:
|
|
4377
4656
|
version:
|
|
@@ -4454,15 +4733,19 @@ components:
|
|
|
4454
4733
|
the server when omitted; a client-supplied value is kept as-is.
|
|
4455
4734
|
examples:
|
|
4456
4735
|
- El8lWTezixy
|
|
4457
|
-
required:
|
|
4458
|
-
- name
|
|
4459
4736
|
Router:
|
|
4460
4737
|
type: object
|
|
4461
4738
|
description: |
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4739
|
+
Directs records into branches. A router comes in two shapes, told apart by whether
|
|
4740
|
+
`routeRecordsTo` and `routeRecordsUsing` are set: a **branching router** sets both and has two
|
|
4741
|
+
or more branches, each taking the records its `inputFilter` (or the router's `script`)
|
|
4742
|
+
matches — the router node you see in Flow Builder; a **pass-through router** sets neither and
|
|
4743
|
+
has exactly one branch that every record goes straight through — not drawn in Flow Builder,
|
|
4744
|
+
it is the joint that holds the steps before the first branching router and that merges
|
|
4745
|
+
branches back into shared steps (branches rejoin only by pointing `nextRouterId` at the same
|
|
4746
|
+
router). A flow with no branching needs no routers — its steps go in top-level
|
|
4747
|
+
`pageProcessors` — unless it is abstract (`isAbstract`), where top-level `pageProcessors` are
|
|
4748
|
+
rejected and the chain sits in one pass-through router.
|
|
4466
4749
|
properties:
|
|
4467
4750
|
id:
|
|
4468
4751
|
type: string
|
|
@@ -4485,28 +4768,35 @@ components:
|
|
|
4485
4768
|
- Order Status Router
|
|
4486
4769
|
routeRecordsTo:
|
|
4487
4770
|
type: string
|
|
4488
|
-
description:
|
|
4771
|
+
description: |-
|
|
4772
|
+
How many branches a record may continue down. Set together with `routeRecordsUsing` on a
|
|
4773
|
+
branching router; leave both unset on a one-branch pass-through router.
|
|
4489
4774
|
enum:
|
|
4490
4775
|
- first_matching_branch
|
|
4491
4776
|
- all_matching_branches
|
|
4492
4777
|
x-enumDescriptions:
|
|
4493
4778
|
first_matching_branch: Routes each record to only the first branch whose criteria match.
|
|
4494
4779
|
all_matching_branches: Routes each record to every branch whose criteria match, creating copies.
|
|
4495
|
-
default: first_matching_branch
|
|
4496
4780
|
examples:
|
|
4497
4781
|
- first_matching_branch
|
|
4782
|
+
x-celigo-ai-guidance:
|
|
4783
|
+
- Set this and `routeRecordsUsing` together on every router that decides between branches; setting only one of the two is rejected with 422 `invalid_flow_router_config`.
|
|
4784
|
+
- Leave both unset on a one-branch pass-through router (the steps before the first branching router, or a merge point). Setting them there still runs, but Flow Builder shows a router node with one branch and no rules. A router with neither field and more than one branch is rejected with 422 `invalid_flow_router_branch`.
|
|
4498
4785
|
routeRecordsUsing:
|
|
4499
4786
|
type: string
|
|
4500
|
-
description:
|
|
4787
|
+
description: |-
|
|
4788
|
+
How a branching router decides which branch a record matches. Set together with
|
|
4789
|
+
`routeRecordsTo`; leave both unset on a one-branch pass-through router.
|
|
4501
4790
|
enum:
|
|
4502
4791
|
- input_filters
|
|
4503
4792
|
- script
|
|
4504
4793
|
x-enumDescriptions:
|
|
4505
4794
|
input_filters: Evaluate routing criteria using declarative filter expressions.
|
|
4506
4795
|
script: Evaluate routing criteria using a custom JavaScript function.
|
|
4507
|
-
default: input_filters
|
|
4508
4796
|
examples:
|
|
4509
4797
|
- input_filters
|
|
4798
|
+
x-celigo-ai-guidance:
|
|
4799
|
+
- Set this and `routeRecordsTo` together on every router that decides between branches, and leave both unset on a one-branch pass-through router; the rejections for a half-set pair or a multi-branch pass-through are listed on `routeRecordsTo`.
|
|
4510
4800
|
script:
|
|
4511
4801
|
type: object
|
|
4512
4802
|
description: |
|
|
@@ -4673,7 +4963,11 @@ components:
|
|
|
4673
4963
|
- 66a1f2c3b4d5e6f7a8b9c0d1
|
|
4674
4964
|
schedule:
|
|
4675
4965
|
type: string
|
|
4676
|
-
description:
|
|
4966
|
+
description: |-
|
|
4967
|
+
Replaces the page generator's schedule for this instance, in the same
|
|
4968
|
+
Celigo 6-field cron format as the flow-level `schedule`. Parsed on every
|
|
4969
|
+
write regardless of `disabled`; an unparseable expression fails with
|
|
4970
|
+
`422 invalid_value` at `overrides.exports[i].schedule`.
|
|
4677
4971
|
examples:
|
|
4678
4972
|
- '? 5 0,4,8,12,16,20 ? * *'
|
|
4679
4973
|
skipRetries:
|
|
@@ -5154,15 +5448,20 @@ components:
|
|
|
5154
5448
|
format: objectId
|
|
5155
5449
|
x-celigo-refModel: integrations
|
|
5156
5450
|
description: |-
|
|
5157
|
-
Integration this flow belongs to. Omitting it
|
|
5158
|
-
produces a standalone flow — the flow is auto-assigned
|
|
5159
|
-
account's "Standalone flows" integration (or the create fails
|
|
5160
|
-
`422 standalone_flows_not_supported` when that integration is
|
|
5161
|
-
missing).
|
|
5451
|
+
Integration this flow belongs to. Omitting it (or sending `null`) on
|
|
5452
|
+
create no longer produces a standalone flow — the flow is auto-assigned
|
|
5453
|
+
to the account's "Standalone flows" integration (or the create fails
|
|
5454
|
+
with `422 standalone_flows_not_supported` when that integration is
|
|
5455
|
+
missing). A value that is not a well-formed ObjectId is rejected with
|
|
5456
|
+
`400 invalid_ref` rather than auto-assigned. Always set it explicitly.
|
|
5162
5457
|
examples:
|
|
5163
5458
|
- 60a2c4e6f321d800129a1a3c
|
|
5164
5459
|
x-celigo-ai-guidance:
|
|
5165
5460
|
- To move the flow to a different integration, PUT with a changed _integrationId AND remove _flowGroupingId (flow groups are per-integration; a stale value is rejected with 422 flowgrouping_not_belong). The platform registers the flow's step connections in the target integration on save.
|
|
5461
|
+
- |-
|
|
5462
|
+
Send a real integration id: a malformed value fails with 400 `invalid_ref`
|
|
5463
|
+
("Please provide a valid _integrationId."), and a well-formed id that names
|
|
5464
|
+
no integration in the account fails with 422 `invalid_ref`.
|
|
5166
5465
|
schedule:
|
|
5167
5466
|
type:
|
|
5168
5467
|
- string
|
|
@@ -5170,13 +5469,24 @@ components:
|
|
|
5170
5469
|
description: |-
|
|
5171
5470
|
Celigo 6-field cron expression: `? minute hour day-of-month month day-of-week`.
|
|
5172
5471
|
Explicit minute/hour lists, ranges, wildcards, and step forms (`*/N`) are all valid.
|
|
5173
|
-
Leave empty for event-driven or webhook-triggered flows.
|
|
5472
|
+
Leave empty for event-driven or webhook-triggered flows. Validated on every
|
|
5473
|
+
write, including while `disabled` is true, so a flow cannot be parked disabled
|
|
5474
|
+
with a broken schedule: `422 invalid_value` when the expression cannot be parsed
|
|
5475
|
+
into a schedule (for example all wildcards, `? * * ? * *`), `422
|
|
5476
|
+
schedule_not_supported` when its runs would be less than a minute apart — which
|
|
5477
|
+
is also what free text such as `every 5 minutes` produces.
|
|
5174
5478
|
x-celigo-ai-guidance:
|
|
5175
5479
|
- |-
|
|
5176
5480
|
Build `schedule` as a Celigo 6-field cron:
|
|
5177
5481
|
`? minute hour day-of-month month day-of-week`.
|
|
5178
5482
|
The seconds field is always `?`; day-of-month is usually `?`, month `*`,
|
|
5179
5483
|
and day-of-week `*` (or specific days, 0=Sun..6=Sat).
|
|
5484
|
+
- |-
|
|
5485
|
+
Disabling a flow does not bypass schedule validation: POST, PUT, and PATCH
|
|
5486
|
+
all reject free text or a sub-minute expression (`not a cron`, `* * * * * *`)
|
|
5487
|
+
with 422 `schedule_not_supported`, and an expression that parses to no
|
|
5488
|
+
schedule (`? * * ? * *`) with 422 `invalid_value`. Fix or clear the schedule
|
|
5489
|
+
instead of disabling the flow to get past the error.
|
|
5180
5490
|
- |-
|
|
5181
5491
|
Prefer explicit lists when AUTHORING a schedule — hourly or longer:
|
|
5182
5492
|
minute `5` with an explicit hour list
|
|
@@ -5237,8 +5547,19 @@ components:
|
|
|
5237
5547
|
routers:
|
|
5238
5548
|
type: array
|
|
5239
5549
|
description: |-
|
|
5240
|
-
|
|
5241
|
-
|
|
5550
|
+
Routers that direct records into branches. Mutually exclusive with top-level
|
|
5551
|
+
`pageProcessors` — a flow with no branching uses `pageProcessors` and no routers at all,
|
|
5552
|
+
except an abstract flow (`isAbstract`), which rejects top-level `pageProcessors` and so
|
|
5553
|
+
holds even a linear chain in a pass-through router. A router comes in two shapes: a
|
|
5554
|
+
**branching router** sets both `routeRecordsTo` and `routeRecordsUsing` and has two or
|
|
5555
|
+
more branches (the router node you see in Flow Builder); a **pass-through router** sets
|
|
5556
|
+
neither, has exactly one branch, and is not drawn — it is the invisible joint that holds
|
|
5557
|
+
the steps before the first branching router (they cannot sit in top-level
|
|
5558
|
+
`pageProcessors` once routers exist) and that merges branches back into shared steps.
|
|
5559
|
+
x-celigo-ai-guidance:
|
|
5560
|
+
- No branching on a non-abstract flow → leave `routers` out and put the steps in top-level `pageProcessors`. No branching on an abstract flow → one pass-through router holding the chain (top-level `pageProcessors` are rejected with 422 `abstract_flow_invalid_fields`).
|
|
5561
|
+
- Steps before the first branching router go in a one-branch pass-through router at `routers[0]` with neither `routeRecordsTo` nor `routeRecordsUsing` set, chained to the branching router with `branches[0].nextRouterId`. Branches that rejoin point `nextRouterId` at one shared pass-through router.
|
|
5562
|
+
- A one-branch router with BOTH routing fields set still runs, but Flow Builder draws it as a router node with a single branch and no rules — the pass-through shape (neither field) is the one that stays hidden.
|
|
5242
5563
|
items:
|
|
5243
5564
|
$ref: '#/components/schemas/Router'
|
|
5244
5565
|
_exportId:
|
|
@@ -5333,18 +5654,27 @@ components:
|
|
|
5333
5654
|
- false
|
|
5334
5655
|
autoResolveMatchingTraceKeys:
|
|
5335
5656
|
type: boolean
|
|
5336
|
-
|
|
5657
|
+
default: true
|
|
5658
|
+
description: |-
|
|
5659
|
+
When true, a new error for a record whose trace key already has open errors on the same step
|
|
5660
|
+
auto-resolves the older ones, a later success for that record auto-resolves its open errors,
|
|
5661
|
+
and errors classified `intermittent` are retried automatically — up to four attempts, the
|
|
5662
|
+
first about 30 minutes after the error.
|
|
5337
5663
|
examples:
|
|
5338
5664
|
- true
|
|
5339
5665
|
- false
|
|
5666
|
+
x-celigo-ai-guidance:
|
|
5667
|
+
- Both behaviors hang off this one flag — off means repeated failures of a record stay open and intermittent errors get no automatic retries; never turn it off as a fix for "duplicate" errors (those come from the destination, not from trace keys).
|
|
5668
|
+
- Intermittent auto-retry does not depend on the trace key — errors with a blank trace key are scheduled and retried the same way; a blank key only loses the duplicate collapse.
|
|
5340
5669
|
isAbstract:
|
|
5341
5670
|
type: boolean
|
|
5342
5671
|
description: |-
|
|
5343
5672
|
Marks this as an abstract (multi-instance) flow — a reusable template that cannot be
|
|
5344
5673
|
executed directly. Instance flows reference it via `_abstractFlowId` and provide `overrides`.
|
|
5345
5674
|
|
|
5346
|
-
Constraints: top-level `pageProcessors` are not allowed (use `routers`
|
|
5347
|
-
|
|
5675
|
+
Constraints: top-level `pageProcessors` are not allowed (use `routers` — a linear chain
|
|
5676
|
+
sits in one pass-through router with neither routing field set), cannot reference another
|
|
5677
|
+
abstract flow, cannot be a "run next" target, and cannot be unset while instances exist.
|
|
5348
5678
|
examples:
|
|
5349
5679
|
- true
|
|
5350
5680
|
- false
|
|
@@ -5374,10 +5704,12 @@ components:
|
|
|
5374
5704
|
format: objectId
|
|
5375
5705
|
description: |-
|
|
5376
5706
|
Flow grouping for organizing related flows in the UI. References an entry in the
|
|
5377
|
-
integration's `flowGroupings` array (not a standalone collection);
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
`
|
|
5707
|
+
integration's `flowGroupings` array (not a standalone collection); an id that is not
|
|
5708
|
+
one of the flow's own integration's groupings — nonexistent, or a grouping of another
|
|
5709
|
+
integration — fails POST and PUT with 422 `flowgrouping_not_belong`. Omit it or pass
|
|
5710
|
+
`null` to leave the flow in the integration's default section. At runtime the flow's
|
|
5711
|
+
steps read the referenced group's `settings` under the fixed scope key `flowGrouping`
|
|
5712
|
+
(e.g. `{{settings.flowGrouping.<fieldId>}}`).
|
|
5381
5713
|
examples:
|
|
5382
5714
|
- 60a2c4e6f321d800129a1a3c
|
|
5383
5715
|
_keepDeltaBehindFlowId:
|
|
@@ -5504,6 +5836,14 @@ components:
|
|
|
5504
5836
|
description: Timestamp when the resource was last updated. Changes whenever any property is modified.
|
|
5505
5837
|
x-celigo-ai-guidance:
|
|
5506
5838
|
- Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
|
|
5839
|
+
- |-
|
|
5840
|
+
Records that something was written, not what — a settings edit, a flag flip, or a
|
|
5841
|
+
platform workflow all move it. What changed and when is in the audit log: the
|
|
5842
|
+
per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
|
|
5843
|
+
`resourceType` enum lists, or the account-wide
|
|
5844
|
+
`GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
|
|
5845
|
+
endpoint's enum accepts (users, environments, notifications among them). A type absent
|
|
5846
|
+
from both enums — jobs, connectors, templates — has only this timestamp.
|
|
5507
5847
|
examples:
|
|
5508
5848
|
- '2023-04-15T14:30:15Z'
|
|
5509
5849
|
deletedAt:
|
|
@@ -5632,17 +5972,6 @@ components:
|
|
|
5632
5972
|
description: Source resource this flow was cloned or installed from.
|
|
5633
5973
|
examples:
|
|
5634
5974
|
- 60a2c4e6f321d800129a1a3c
|
|
5635
|
-
Request:
|
|
5636
|
-
type: object
|
|
5637
|
-
description: |-
|
|
5638
|
-
Fields for creating or updating a flow.
|
|
5639
|
-
|
|
5640
|
-
Use `pageProcessors` for simple linear flows or `routers` for conditional branching — never
|
|
5641
|
-
include both. The `schedule` field uses Celigo's 6-field cron format (not standard 5-field).
|
|
5642
|
-
required:
|
|
5643
|
-
- name
|
|
5644
|
-
allOf:
|
|
5645
|
-
- $ref: '#/components/schemas/FlowBase'
|
|
5646
5975
|
Error:
|
|
5647
5976
|
type: object
|
|
5648
5977
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -5683,6 +6012,17 @@ components:
|
|
|
5683
6012
|
- message
|
|
5684
6013
|
required:
|
|
5685
6014
|
- errors
|
|
6015
|
+
Request:
|
|
6016
|
+
type: object
|
|
6017
|
+
description: |-
|
|
6018
|
+
Fields for creating or updating a flow.
|
|
6019
|
+
|
|
6020
|
+
Use `pageProcessors` for simple linear flows or `routers` for conditional branching — never
|
|
6021
|
+
include both. The `schedule` field uses Celigo's 6-field cron format (not standard 5-field).
|
|
6022
|
+
required:
|
|
6023
|
+
- name
|
|
6024
|
+
allOf:
|
|
6025
|
+
- $ref: '#/components/schemas/FlowBase'
|
|
5686
6026
|
JsonPatchOperation:
|
|
5687
6027
|
type: object
|
|
5688
6028
|
description: A single JSON Patch operation (RFC 6902).
|
|
@@ -5974,6 +6314,166 @@ components:
|
|
|
5974
6314
|
error:
|
|
5975
6315
|
type: string
|
|
5976
6316
|
description: Human-readable reason the run was not started.
|
|
6317
|
+
FlowRunsStatsRequest:
|
|
6318
|
+
type: object
|
|
6319
|
+
required:
|
|
6320
|
+
- type
|
|
6321
|
+
- startTime
|
|
6322
|
+
properties:
|
|
6323
|
+
type:
|
|
6324
|
+
type: string
|
|
6325
|
+
description: Request type.
|
|
6326
|
+
enum:
|
|
6327
|
+
- runtimeSummary
|
|
6328
|
+
x-enumDescriptions:
|
|
6329
|
+
runtimeSummary: Historical runtime summary and chart buckets for alert threshold preview.
|
|
6330
|
+
examples:
|
|
6331
|
+
- runtimeSummary
|
|
6332
|
+
startTime:
|
|
6333
|
+
type: string
|
|
6334
|
+
format: date-time
|
|
6335
|
+
description: Start of query window (ISO 8601 UTC). Must not be in the future.
|
|
6336
|
+
examples:
|
|
6337
|
+
- '2026-05-01T00:00:00.000Z'
|
|
6338
|
+
endTime:
|
|
6339
|
+
type: string
|
|
6340
|
+
format: date-time
|
|
6341
|
+
description: End of query window (ISO 8601 UTC). Defaults to now. Must not be in the future.
|
|
6342
|
+
examples:
|
|
6343
|
+
- '2026-06-01T00:00:00.000Z'
|
|
6344
|
+
thresholdMinutes:
|
|
6345
|
+
type: integer
|
|
6346
|
+
minimum: 5
|
|
6347
|
+
maximum: 59940
|
|
6348
|
+
description: |-
|
|
6349
|
+
Optional threshold override in minutes. When omitted, the response uses
|
|
6350
|
+
`statistics.suggestedThreshold` (ceil of p99 runtime, floored at 5).
|
|
6351
|
+
Chart counts use this value with a strict greater-than comparison.
|
|
6352
|
+
examples:
|
|
6353
|
+
- 45
|
|
6354
|
+
FlowRunsStatsResponse:
|
|
6355
|
+
type: object
|
|
6356
|
+
description: |-
|
|
6357
|
+
Runtime statistics response for the proactive alert threshold chart.
|
|
6358
|
+
|
|
6359
|
+
Three shapes are possible:
|
|
6360
|
+
- **Summary** — `emptyState: false` with `statistics`, `chartEntries`, and
|
|
6361
|
+
run totals. Returned when the time range has 3 or more completed runs.
|
|
6362
|
+
- **Empty state** — `{ _flowId, startTime, endTime, emptyState: true }` with
|
|
6363
|
+
no chart data. Returned when the time range has fewer than 3 completed
|
|
6364
|
+
runs.
|
|
6365
|
+
- **ClickHouse unavailable** — only `clickhouseAvailable: false`. Returned
|
|
6366
|
+
when ClickHouse is not enabled for the caller.
|
|
6367
|
+
properties:
|
|
6368
|
+
_flowId:
|
|
6369
|
+
type: string
|
|
6370
|
+
format: objectId
|
|
6371
|
+
x-celigo-refModel: flows
|
|
6372
|
+
description: Echoed flow id.
|
|
6373
|
+
examples:
|
|
6374
|
+
- 507f1f77bcf86cd799439011
|
|
6375
|
+
startTime:
|
|
6376
|
+
type: string
|
|
6377
|
+
format: date-time
|
|
6378
|
+
description: Echoed query start time.
|
|
6379
|
+
examples:
|
|
6380
|
+
- '2026-05-01T00:00:00.000Z'
|
|
6381
|
+
endTime:
|
|
6382
|
+
type: string
|
|
6383
|
+
format: date-time
|
|
6384
|
+
description: Echoed query end time.
|
|
6385
|
+
examples:
|
|
6386
|
+
- '2026-06-01T00:00:00.000Z'
|
|
6387
|
+
granularity:
|
|
6388
|
+
type: string
|
|
6389
|
+
description: Bucket granularity for chart entries. Absent on empty-state and ClickHouse-unavailable responses.
|
|
6390
|
+
enum:
|
|
6391
|
+
- hour
|
|
6392
|
+
- day
|
|
6393
|
+
x-enumDescriptions:
|
|
6394
|
+
hour: Hourly buckets (ranges ≤ 24h).
|
|
6395
|
+
day: Daily buckets (ranges longer than 24h).
|
|
6396
|
+
thresholdMinutes:
|
|
6397
|
+
type: integer
|
|
6398
|
+
description: Threshold used for chart alert-count computation. Absent on empty-state and ClickHouse-unavailable responses.
|
|
6399
|
+
examples:
|
|
6400
|
+
- 45
|
|
6401
|
+
totalRuns:
|
|
6402
|
+
type: integer
|
|
6403
|
+
description: Total completed runs in the time range. Absent on empty-state and ClickHouse-unavailable responses.
|
|
6404
|
+
examples:
|
|
6405
|
+
- 120
|
|
6406
|
+
totalAlertsTriggered:
|
|
6407
|
+
type: integer
|
|
6408
|
+
description: |-
|
|
6409
|
+
Count of completed runs in the window whose runtime is strictly greater
|
|
6410
|
+
than `thresholdMinutes`. Historical chart metric only — not the number
|
|
6411
|
+
of alert emails sent. Absent on empty-state and ClickHouse-unavailable
|
|
6412
|
+
responses.
|
|
6413
|
+
examples:
|
|
6414
|
+
- 8
|
|
6415
|
+
emptyState:
|
|
6416
|
+
type: boolean
|
|
6417
|
+
description: |-
|
|
6418
|
+
`true` when the time range has fewer than 3 completed runs (no chart
|
|
6419
|
+
data). `false` on summary responses. Absent on ClickHouse-unavailable
|
|
6420
|
+
responses.
|
|
6421
|
+
examples:
|
|
6422
|
+
- false
|
|
6423
|
+
truncated:
|
|
6424
|
+
type: boolean
|
|
6425
|
+
description: |-
|
|
6426
|
+
True when totalRuns exceeds 5000. Indicates a high-volume warning; chart
|
|
6427
|
+
data is still complete for the requested time range. Absent on
|
|
6428
|
+
empty-state and ClickHouse-unavailable responses.
|
|
6429
|
+
examples:
|
|
6430
|
+
- false
|
|
6431
|
+
clickhouseAvailable:
|
|
6432
|
+
type: boolean
|
|
6433
|
+
description: |-
|
|
6434
|
+
Present only when ClickHouse is not available for the caller. Value is
|
|
6435
|
+
always `false` when present. Absent on successful summary and
|
|
6436
|
+
empty-state responses.
|
|
6437
|
+
examples:
|
|
6438
|
+
- false
|
|
6439
|
+
statistics:
|
|
6440
|
+
type: object
|
|
6441
|
+
description: |-
|
|
6442
|
+
Present on successful summary responses. Used by the UI for the
|
|
6443
|
+
suggested threshold hint. Absent on empty-state and
|
|
6444
|
+
ClickHouse-unavailable responses.
|
|
6445
|
+
properties:
|
|
6446
|
+
suggestedThreshold:
|
|
6447
|
+
type: integer
|
|
6448
|
+
description: |-
|
|
6449
|
+
Suggested threshold in minutes: ceil of the p99 completed-run
|
|
6450
|
+
runtime in the window, then floored at the platform minimum (5).
|
|
6451
|
+
examples:
|
|
6452
|
+
- 45
|
|
6453
|
+
chartEntries:
|
|
6454
|
+
type: array
|
|
6455
|
+
description: |-
|
|
6456
|
+
Chart data buckets. Present on successful summary responses. Absent on
|
|
6457
|
+
empty-state and ClickHouse-unavailable responses.
|
|
6458
|
+
items:
|
|
6459
|
+
type: object
|
|
6460
|
+
properties:
|
|
6461
|
+
bucket:
|
|
6462
|
+
type: string
|
|
6463
|
+
description: ISO hourly timestamp or YYYY-MM-DD date.
|
|
6464
|
+
examples:
|
|
6465
|
+
- '2026-05-01'
|
|
6466
|
+
totalRuns:
|
|
6467
|
+
type: integer
|
|
6468
|
+
alertsTriggered:
|
|
6469
|
+
type: integer
|
|
6470
|
+
description: Completed runs in this bucket with runtime strictly greater than the query threshold.
|
|
6471
|
+
avgRuntimeMinutes:
|
|
6472
|
+
type: number
|
|
6473
|
+
p5RuntimeMinutes:
|
|
6474
|
+
type: number
|
|
6475
|
+
p95RuntimeMinutes:
|
|
6476
|
+
type: number
|
|
5977
6477
|
FlowTraceKeyResponse:
|
|
5978
6478
|
type: array
|
|
5979
6479
|
description: |-
|
|
@@ -6023,7 +6523,9 @@ components:
|
|
|
6023
6523
|
properties:
|
|
6024
6524
|
_flowIds:
|
|
6025
6525
|
type: array
|
|
6026
|
-
description:
|
|
6526
|
+
description: |-
|
|
6527
|
+
The flows to move. All must belong to the same integration as the target flow group
|
|
6528
|
+
(400 `invalid_request` otherwise); ids that match no flow are silently skipped.
|
|
6027
6529
|
minItems: 1
|
|
6028
6530
|
items:
|
|
6029
6531
|
type: string
|
|
@@ -6033,13 +6535,14 @@ components:
|
|
|
6033
6535
|
type:
|
|
6034
6536
|
- string
|
|
6035
6537
|
- 'null'
|
|
6538
|
+
format: objectId
|
|
6036
6539
|
description: |-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
integration's default section
|
|
6540
|
+
Grouping within the integration's `flowGroupings[]` to move the flows into. Must belong to
|
|
6541
|
+
the flows' own integration (400 `flowgrouping_update_error` otherwise). Pass `null` or omit
|
|
6542
|
+
it to move the flows back to the integration's default section; an empty string is rejected
|
|
6543
|
+
with 400 `invalid_ref`.
|
|
6040
6544
|
required:
|
|
6041
6545
|
- _flowIds
|
|
6042
|
-
- _flowGroupingId
|
|
6043
6546
|
FlowStepError:
|
|
6044
6547
|
type: object
|
|
6045
6548
|
description: |-
|
|
@@ -6102,13 +6605,18 @@ components:
|
|
|
6102
6605
|
classification:
|
|
6103
6606
|
type: string
|
|
6104
6607
|
description: |-
|
|
6105
|
-
Category
|
|
6106
|
-
|
|
6608
|
+
Category the platform derives from the error's code, message, and source — read-only, never
|
|
6609
|
+
set by users; `intermittent` errors are retried automatically while the flow's
|
|
6610
|
+
`autoResolveMatchingTraceKeys` is on. Absent when nothing matched with confidence. The value
|
|
6611
|
+
set is the `classification` dimension of the errors filter metadata.
|
|
6107
6612
|
examples:
|
|
6108
6613
|
- intermittent
|
|
6614
|
+
x-celigo-ai-guidance:
|
|
6615
|
+
- Read the classification off the record; never infer it from the message text — the classifier is heuristic and identical messages can classify differently.
|
|
6616
|
+
- There is no setting, mapping, hook, or API that changes a classification; a wrong one is a Celigo Support matter.
|
|
6109
6617
|
classifiedBy:
|
|
6110
6618
|
type: string
|
|
6111
|
-
description: '`auto`
|
|
6619
|
+
description: '`auto` on every classified error; absent on unclassified ones.'
|
|
6112
6620
|
examples:
|
|
6113
6621
|
- auto
|
|
6114
6622
|
reqAndResKey:
|
|
@@ -6140,11 +6648,14 @@ components:
|
|
|
6140
6648
|
type: string
|
|
6141
6649
|
format: date-time
|
|
6142
6650
|
description: |-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6651
|
+
Present while the platform is auto-retrying this `intermittent` error. On a first-occurrence
|
|
6652
|
+
error it is stamped about a minute after `occurredAt` and is not the first attempt time (that
|
|
6653
|
+
runs roughly 30 minutes out); on the error a failed attempt opens, it is the next scheduled
|
|
6654
|
+
attempt. Absent once the attempts are exhausted and on errors that are not auto-retried.
|
|
6146
6655
|
examples:
|
|
6147
6656
|
- '2026-01-15T09:35:00.000Z'
|
|
6657
|
+
x-celigo-ai-guidance:
|
|
6658
|
+
- Presence answers "is this error in auto-retry mode?"; the value is a real schedule only after at least one attempt has run.
|
|
6148
6659
|
tags:
|
|
6149
6660
|
type:
|
|
6150
6661
|
- array
|
|
@@ -6700,15 +7211,29 @@ components:
|
|
|
6700
7211
|
triggeredBy:
|
|
6701
7212
|
type: string
|
|
6702
7213
|
readOnly: true
|
|
6703
|
-
description:
|
|
7214
|
+
description: |-
|
|
7215
|
+
What started the run. On a `flow` job: `system` for a scheduled run, the `_id` of
|
|
7216
|
+
the user who ran the flow, or the `_id` of the upstream flow whose `_runNextFlowIds`
|
|
7217
|
+
chained into this one; absent on event-driven runs (webhook, real-time listener, and
|
|
7218
|
+
stream page generators), which the inbound event starts. On a `retry` job: `auto`
|
|
7219
|
+
for the platform's automatic intermittent-error retry, otherwise the `_id` of the
|
|
7220
|
+
user who submitted the retry. Absent on `export` and `import` child jobs — the
|
|
7221
|
+
parent flow job carries it.
|
|
6704
7222
|
examples:
|
|
6705
|
-
-
|
|
7223
|
+
- system
|
|
6706
7224
|
canceledBy:
|
|
6707
7225
|
type: string
|
|
6708
7226
|
readOnly: true
|
|
6709
|
-
description:
|
|
7227
|
+
description: |-
|
|
7228
|
+
Who canceled the run: the `_id` of the user who requested the cancel, or `system` for
|
|
7229
|
+
every platform-initiated cancel — stuck-run recovery after a worker exit or crash or
|
|
7230
|
+
when a run stops making progress, stale-run cleanup, a scheduler that could not
|
|
7231
|
+
re-queue the run, and the cancels that follow deleting the flow or replacing one of
|
|
7232
|
+
its connections. The record does not say which of these it was.
|
|
7233
|
+
x-celigo-ai-guidance:
|
|
7234
|
+
- A `system` cancel is not something the user did and not a verdict on the flow's configuration, and by itself it does not prove the run was stuck — deleting the flow or replacing one of its connections cancels in-flight runs the same way; read the run's age and progress counters for that.
|
|
6710
7235
|
examples:
|
|
6711
|
-
-
|
|
7236
|
+
- system
|
|
6712
7237
|
flowExecutionGroupId:
|
|
6713
7238
|
type: string
|
|
6714
7239
|
readOnly: true
|
|
@@ -6721,6 +7246,7 @@ components:
|
|
|
6721
7246
|
description: |
|
|
6722
7247
|
Total number of errors produced by the job (including resolved ones).
|
|
6723
7248
|
Use `numOpenError` for the count of currently unresolved errors.
|
|
7249
|
+
On a parent flow job this is the sum across every step; on a child job it is that step's count.
|
|
6724
7250
|
examples:
|
|
6725
7251
|
- 10
|
|
6726
7252
|
numOpenError:
|
|
@@ -6746,13 +7272,20 @@ components:
|
|
|
6746
7272
|
numSuccess:
|
|
6747
7273
|
type: integer
|
|
6748
7274
|
readOnly: true
|
|
6749
|
-
description:
|
|
7275
|
+
description: |-
|
|
7276
|
+
Number of records processed successfully. On a parent flow job (`type: flow`) this is the
|
|
7277
|
+
sum across every step in the run, so one record that passes through an export and an import
|
|
7278
|
+
counts twice. On a child job (`type: export` or `import`) it is that step's count alone.
|
|
7279
|
+
For per-step counts, read the run with `GET /v1/jobs/{_id}/family` or list its children with
|
|
7280
|
+
`GET /v1/jobs?_flowJobId={_id}&type=import`.
|
|
6750
7281
|
examples:
|
|
6751
7282
|
- 10
|
|
6752
7283
|
numIgnore:
|
|
6753
7284
|
type: integer
|
|
6754
7285
|
readOnly: true
|
|
6755
|
-
description:
|
|
7286
|
+
description: |-
|
|
7287
|
+
Number of records skipped, for example by an import's ignore-existing or ignore-missing rule.
|
|
7288
|
+
Summed across steps on a parent flow job; per step on a child job.
|
|
6756
7289
|
examples:
|
|
6757
7290
|
- 0
|
|
6758
7291
|
numExport:
|
|
@@ -7247,6 +7780,10 @@ components:
|
|
|
7247
7780
|
|
|
7248
7781
|
The tuple `(_expOrImpId, groupId, recordId)` uniquely identifies the record-at-step; `traceKey` groups
|
|
7249
7782
|
the paired export and import entries that processed the same record end-to-end.
|
|
7783
|
+
|
|
7784
|
+
A ToolImport is one row per record. Steps inside the Tool are not separate rows; their
|
|
7785
|
+
failures roll into this row's `status`. `groupId` is the Tool's input-side group once
|
|
7786
|
+
that pass has been recorded.
|
|
7250
7787
|
properties:
|
|
7251
7788
|
startedAt:
|
|
7252
7789
|
type: string
|
|
@@ -7277,17 +7814,25 @@ components:
|
|
|
7277
7814
|
description: Id of the export or import step that produced this entry.
|
|
7278
7815
|
examples:
|
|
7279
7816
|
- 60a2c4e6f321d800129a1a3c
|
|
7817
|
+
_toolImportId:
|
|
7818
|
+
type: string
|
|
7819
|
+
format: objectId
|
|
7820
|
+
description: |-
|
|
7821
|
+
ToolImport id on a Tool rollup row. Equals `_expOrImpId`. Absent on export
|
|
7822
|
+
and import steps that are not a ToolImport.
|
|
7823
|
+
examples:
|
|
7824
|
+
- 60a2c4e6f321d800129a1a3c
|
|
7280
7825
|
status:
|
|
7281
7826
|
type: string
|
|
7282
7827
|
description: Outcome of this step for this record.
|
|
7283
7828
|
enum:
|
|
7284
7829
|
- success
|
|
7285
7830
|
- error
|
|
7286
|
-
-
|
|
7831
|
+
- ignore
|
|
7287
7832
|
x-enumDescriptions:
|
|
7288
7833
|
success: The record was processed successfully at this step.
|
|
7289
7834
|
error: The record encountered an error during processing.
|
|
7290
|
-
|
|
7835
|
+
ignore: The record was skipped by a filter or routing rule.
|
|
7291
7836
|
timeTaken:
|
|
7292
7837
|
type: integer
|
|
7293
7838
|
description: Milliseconds spent processing this record at this step.
|
|
@@ -7330,7 +7875,7 @@ components:
|
|
|
7330
7875
|
- 60a2c4e6f321d800129a1a3c
|
|
7331
7876
|
groupId:
|
|
7332
7877
|
type: string
|
|
7333
|
-
description: The `groupId` from the matching
|
|
7878
|
+
description: The `groupId` from the matching execution-log entry. Ignored when `_toolImportId` is set.
|
|
7334
7879
|
examples:
|
|
7335
7880
|
- g_5f8d43a1b9e5a80011a35f2d
|
|
7336
7881
|
recordId:
|
|
@@ -7338,6 +7883,14 @@ components:
|
|
|
7338
7883
|
description: The `recordId` from the matching `execution-log` entry.
|
|
7339
7884
|
examples:
|
|
7340
7885
|
- r_0001
|
|
7886
|
+
_toolImportId:
|
|
7887
|
+
type: string
|
|
7888
|
+
format: objectId
|
|
7889
|
+
description: |-
|
|
7890
|
+
ToolImport id. Scopes the step view (no usable `traceKey`) to that Tool's chain for
|
|
7891
|
+
`recordId` — the Tool node plus steps inside it — and makes `groupId` optional.
|
|
7892
|
+
examples:
|
|
7893
|
+
- 60a2c4e6f321d800129a1a3c
|
|
7341
7894
|
traceKey:
|
|
7342
7895
|
type: string
|
|
7343
7896
|
description: |-
|
|
@@ -7347,11 +7900,20 @@ components:
|
|
|
7347
7900
|
- ORD-100245
|
|
7348
7901
|
required:
|
|
7349
7902
|
- _expOrImpId
|
|
7350
|
-
- groupId
|
|
7351
7903
|
- recordId
|
|
7904
|
+
if:
|
|
7905
|
+
required:
|
|
7906
|
+
- _toolImportId
|
|
7907
|
+
then: {}
|
|
7908
|
+
else:
|
|
7909
|
+
required:
|
|
7910
|
+
- groupId
|
|
7352
7911
|
ExecutionLogStep:
|
|
7353
7912
|
type: object
|
|
7354
|
-
description:
|
|
7913
|
+
description: |-
|
|
7914
|
+
Per-step timing and outcome for a single record as it passed through one export or import.
|
|
7915
|
+
A ToolImport with both an input and an output pass collapses to one step; steps inside
|
|
7916
|
+
the Tool remain separate entries.
|
|
7355
7917
|
properties:
|
|
7356
7918
|
_expOrImpId:
|
|
7357
7919
|
type: string
|
|
@@ -7366,20 +7928,36 @@ components:
|
|
|
7366
7928
|
- r_0001
|
|
7367
7929
|
groupId:
|
|
7368
7930
|
type: string
|
|
7369
|
-
description: Opaque batch id.
|
|
7931
|
+
description: Opaque batch id. On a collapsed ToolImport step this is the input-side group.
|
|
7370
7932
|
examples:
|
|
7371
7933
|
- g_5f8d43a1b9e5a80011a35f2d
|
|
7934
|
+
outputGroupId:
|
|
7935
|
+
type: string
|
|
7936
|
+
description: |-
|
|
7937
|
+
Output-side group. Present only on a collapsed ToolImport step. `logs/data/query`
|
|
7938
|
+
with `stage: tool` resolves both groups itself; do not send this value as its `groupId`.
|
|
7939
|
+
examples:
|
|
7940
|
+
- g_out_5f8d43a1b9e5a80011a35f2d
|
|
7941
|
+
_toolImportId:
|
|
7942
|
+
type: string
|
|
7943
|
+
format: objectId
|
|
7944
|
+
description: |-
|
|
7945
|
+
Outermost ToolImport of the chain this step belongs to. Present on every step in
|
|
7946
|
+
the chain, including nested Tool nodes and steps inside the Tool. Absent on flow
|
|
7947
|
+
steps outside a Tool.
|
|
7948
|
+
examples:
|
|
7949
|
+
- 60a2c4e6f321d800129a1a3c
|
|
7372
7950
|
status:
|
|
7373
7951
|
type: string
|
|
7374
7952
|
description: Outcome at this step.
|
|
7375
7953
|
enum:
|
|
7376
7954
|
- success
|
|
7377
7955
|
- error
|
|
7378
|
-
-
|
|
7956
|
+
- ignore
|
|
7379
7957
|
x-enumDescriptions:
|
|
7380
7958
|
success: The record was processed successfully at this step.
|
|
7381
7959
|
error: The record encountered an error during processing.
|
|
7382
|
-
|
|
7960
|
+
ignore: The record was skipped by a filter or routing rule.
|
|
7383
7961
|
timeTaken:
|
|
7384
7962
|
type: integer
|
|
7385
7963
|
description: Milliseconds spent at this step for this record.
|
|
@@ -7399,10 +7977,12 @@ components:
|
|
|
7399
7977
|
type: string
|
|
7400
7978
|
description: |-
|
|
7401
7979
|
Pipeline stage at which this step entry was recorded. Observed values include `apiCall`
|
|
7402
|
-
(the adaptor invocation itself)
|
|
7403
|
-
|
|
7980
|
+
(the adaptor invocation itself) and `schemaValidation` (a Tool input or output check).
|
|
7981
|
+
Useful for filtering metadata responses when a step has multiple stage entries across
|
|
7982
|
+
a single record's pass.
|
|
7404
7983
|
examples:
|
|
7405
7984
|
- apiCall
|
|
7985
|
+
- schemaValidation
|
|
7406
7986
|
ExecutionLogMetadataResponse:
|
|
7407
7987
|
type: object
|
|
7408
7988
|
description: |-
|
|
@@ -7421,10 +8001,12 @@ components:
|
|
|
7421
8001
|
type: boolean
|
|
7422
8002
|
description: |-
|
|
7423
8003
|
`true` when the response contains a multi-step trace (i.e. the request supplied `traceKey` and paired
|
|
7424
|
-
steps were found). `false` when the response is scoped to the
|
|
8004
|
+
steps were found). `false` when the response is scoped to the queried step or Tool chain.
|
|
7425
8005
|
steps:
|
|
7426
8006
|
type: array
|
|
7427
|
-
description:
|
|
8007
|
+
description: |-
|
|
8008
|
+
Per-step metadata. One entry for a plain step query; the collapsed Tool node plus the
|
|
8009
|
+
steps inside it when `_toolImportId` was sent; one per paired step when `traceView` is true.
|
|
7428
8010
|
items:
|
|
7429
8011
|
$ref: '#/components/schemas/ExecutionLogStep'
|
|
7430
8012
|
ExecutionLogDataRequest:
|
|
@@ -7441,26 +8023,46 @@ components:
|
|
|
7441
8023
|
- 60a2c4e6f321d800129a1a3c
|
|
7442
8024
|
stage:
|
|
7443
8025
|
type: string
|
|
7444
|
-
description:
|
|
8026
|
+
description: |-
|
|
8027
|
+
Execution stage whose data to return. `tool` composes a ToolImport's input
|
|
8028
|
+
and output; `groupId` is not required for that stage.
|
|
7445
8029
|
enum:
|
|
7446
8030
|
- apiCall
|
|
7447
|
-
-
|
|
7448
|
-
-
|
|
7449
|
-
-
|
|
7450
|
-
-
|
|
7451
|
-
-
|
|
7452
|
-
-
|
|
8031
|
+
- inputFilter
|
|
8032
|
+
- outputFilter
|
|
8033
|
+
- transformation
|
|
8034
|
+
- mapping
|
|
8035
|
+
- responseMapping
|
|
8036
|
+
- responseTransformation
|
|
8037
|
+
- routing
|
|
8038
|
+
- preSavePageHook
|
|
8039
|
+
- preMapHook
|
|
8040
|
+
- postMapHook
|
|
8041
|
+
- postSubmitHook
|
|
8042
|
+
- postResponseMapHook
|
|
8043
|
+
- schemaValidation
|
|
8044
|
+
- tool
|
|
7453
8045
|
x-enumDescriptions:
|
|
7454
8046
|
apiCall: Raw HTTP request and response from the adaptor invocation.
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
8047
|
+
inputFilter: Input-filter evaluation for the record.
|
|
8048
|
+
outputFilter: Output-filter evaluation for the record.
|
|
8049
|
+
transformation: Record before and after the transformation.
|
|
8050
|
+
mapping: Record before and after field mapping.
|
|
8051
|
+
responseMapping: Response mapped back onto the record.
|
|
8052
|
+
responseTransformation: Import response before and after the response transformation.
|
|
8053
|
+
routing: Branch decision for the record on a router.
|
|
8054
|
+
preSavePageHook: Input and output of the preSavePage script hook.
|
|
8055
|
+
preMapHook: Input and output of the preMap script hook.
|
|
8056
|
+
postMapHook: Input and output of the postMap script hook.
|
|
8057
|
+
postSubmitHook: Input and output of the postSubmit script hook.
|
|
8058
|
+
postResponseMapHook: Input and output of the postResponseMap script hook.
|
|
8059
|
+
schemaValidation: Record entering a ToolImport's input or output schema validation.
|
|
8060
|
+
tool: Composed ToolImport input and output. The server resolves both groups.
|
|
7461
8061
|
groupId:
|
|
7462
8062
|
type: string
|
|
7463
|
-
description:
|
|
8063
|
+
description: |-
|
|
8064
|
+
Batch id from the execution-log entry. Required unless `stage` is `tool`,
|
|
8065
|
+
in which case it is ignored.
|
|
7464
8066
|
examples:
|
|
7465
8067
|
- g_5f8d43a1b9e5a80011a35f2d
|
|
7466
8068
|
recordId:
|
|
@@ -7468,11 +8070,29 @@ components:
|
|
|
7468
8070
|
description: Record id from the `execution-log` entry.
|
|
7469
8071
|
examples:
|
|
7470
8072
|
- r_0001
|
|
8073
|
+
_toolImportId:
|
|
8074
|
+
type: string
|
|
8075
|
+
format: objectId
|
|
8076
|
+
description: |-
|
|
8077
|
+
Outermost ToolImport id, used with `stage: tool`. Set it equal to `_expOrImpId`
|
|
8078
|
+
for the outermost Tool; omit it for a nested ToolImport, where `_expOrImpId` is
|
|
8079
|
+
the inner id. A value that differs from `_expOrImpId` is rejected with 400.
|
|
8080
|
+
examples:
|
|
8081
|
+
- 60a2c4e6f321d800129a1a3c
|
|
7471
8082
|
required:
|
|
7472
8083
|
- _expOrImpId
|
|
7473
8084
|
- stage
|
|
7474
|
-
- groupId
|
|
7475
8085
|
- recordId
|
|
8086
|
+
if:
|
|
8087
|
+
properties:
|
|
8088
|
+
stage:
|
|
8089
|
+
const: tool
|
|
8090
|
+
required:
|
|
8091
|
+
- stage
|
|
8092
|
+
then: {}
|
|
8093
|
+
else:
|
|
8094
|
+
required:
|
|
8095
|
+
- groupId
|
|
7476
8096
|
ExecutionLogDataResponse:
|
|
7477
8097
|
type: object
|
|
7478
8098
|
description: |-
|
|
@@ -7480,8 +8100,9 @@ components:
|
|
|
7480
8100
|
`POST /v1/flows/{_id}/jobs/{_jobId}/logs/data/query`.
|
|
7481
8101
|
|
|
7482
8102
|
The payload inside `logs[].log` is stage-specific. For `apiCall`, it contains decoded request + response
|
|
7483
|
-
bodies, headers, status, and duration. For script-hook stages (`
|
|
7484
|
-
|
|
8103
|
+
bodies, headers, status, and duration. For script-hook stages (`preMapHook`, `postMapHook`, …), it
|
|
8104
|
+
contains the hook's `input`, `output`, and `errors`. `logs` is empty when nothing was stored for the stage.
|
|
8105
|
+
For `stage: tool`, `logs[].log` is the composed ToolImport input and output described below.
|
|
7485
8106
|
properties:
|
|
7486
8107
|
logs:
|
|
7487
8108
|
type: array
|
|
@@ -7491,13 +8112,48 @@ components:
|
|
|
7491
8112
|
properties:
|
|
7492
8113
|
log:
|
|
7493
8114
|
type: object
|
|
7494
|
-
description:
|
|
8115
|
+
description: 'Stage payload. Fields vary by the requested stage; the properties below apply to `stage: tool`.'
|
|
8116
|
+
properties:
|
|
8117
|
+
stage:
|
|
8118
|
+
type: string
|
|
8119
|
+
description: Stage that produced this payload.
|
|
8120
|
+
examples:
|
|
8121
|
+
- tool
|
|
8122
|
+
recordId:
|
|
8123
|
+
type: string
|
|
8124
|
+
description: Record the payload belongs to.
|
|
8125
|
+
examples:
|
|
8126
|
+
- rtool001
|
|
8127
|
+
groupId:
|
|
8128
|
+
type: string
|
|
8129
|
+
description: Input-side group of the ToolImport.
|
|
8130
|
+
examples:
|
|
8131
|
+
- g1in0001
|
|
8132
|
+
outputGroupId:
|
|
8133
|
+
type: string
|
|
8134
|
+
description: Output-side group of the ToolImport. Absent until the output pass completes.
|
|
8135
|
+
examples:
|
|
8136
|
+
- g1out001
|
|
8137
|
+
input:
|
|
8138
|
+
description: Record entering the Tool.
|
|
8139
|
+
output:
|
|
8140
|
+
description: Record entering output validation. Absent until the output pass completes.
|
|
7495
8141
|
additionalProperties: true
|
|
8142
|
+
externalReference:
|
|
8143
|
+
type: array
|
|
8144
|
+
description: |-
|
|
8145
|
+
Replaces an inline field whose payload exceeds the size limit. For `stage: tool`,
|
|
8146
|
+
each entry's `target` is `input` or `output`.
|
|
8147
|
+
items:
|
|
8148
|
+
type: object
|
|
8149
|
+
additionalProperties: true
|
|
7496
8150
|
errors:
|
|
7497
8151
|
type: array
|
|
7498
8152
|
description: |-
|
|
7499
8153
|
Query-scoped errors. Some adaptors (e.g. NetSuiteDistributedImport) attach the actual failure here rather
|
|
7500
|
-
than inside `logs[].log.errors`.
|
|
8154
|
+
than inside `logs[].log.errors`. For `stage: tool` on an outermost ToolImport, failures
|
|
8155
|
+
from any step inside the Tool are listed here, even when `logs` is empty; a nested
|
|
8156
|
+
ToolImport returns `[]`. Empty on success.
|
|
7501
8157
|
items:
|
|
7502
8158
|
type: object
|
|
7503
8159
|
additionalProperties: true
|
|
@@ -7599,6 +8255,17 @@ components:
|
|
|
7599
8255
|
Flow-page-processor preview request. Carries the flow shape plus
|
|
7600
8256
|
side-loaded maps of page-generator and page-processor docs so the
|
|
7601
8257
|
preview engine can run without reading the persisted flow doc.
|
|
8258
|
+
x-celigo-ai-guidance:
|
|
8259
|
+
- |-
|
|
8260
|
+
The target import's `{preview: true}` / `{sendAndPreview: true}` composing modes serve HTTP
|
|
8261
|
+
import targets only: a NetSuite, Salesforce, RDBMS or FTP target answers `422
|
|
8262
|
+
no_data_available` whatever records the chain delivers — not a data problem. Execute such a
|
|
8263
|
+
step as a virtual import (`POST /v1/connections/{_id}/import`) instead; with no options flag
|
|
8264
|
+
this call still returns the arriving record for any adaptor.
|
|
8265
|
+
- |-
|
|
8266
|
+
A `422` whose `errors[]` carry `source: application` and `stage: apiCall` after
|
|
8267
|
+
`sendAndPreview` means the request DID execute and the target's `failPath` rules judged the
|
|
8268
|
+
destination's answer a failure — a completed send, not a request-validation error.
|
|
7602
8269
|
properties:
|
|
7603
8270
|
flow:
|
|
7604
8271
|
type: object
|
|
@@ -7608,12 +8275,17 @@ components:
|
|
|
7608
8275
|
match keys in the side-loaded maps. Full flow doc shape mirrors
|
|
7609
8276
|
`POST /v1/flows` body. Accepted under key `flow` despite the
|
|
7610
8277
|
server's stale `flowDoc` error message.
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
8278
|
+
properties:
|
|
8279
|
+
_selectedPageGeneratorId:
|
|
8280
|
+
type: string
|
|
8281
|
+
format: objectId
|
|
8282
|
+
x-celigo-refModel: exports
|
|
8283
|
+
description: |-
|
|
8284
|
+
Page generator to drive the preview when the flow has multiple.
|
|
8285
|
+
Defaults to `pageGenerators[0]._exportId`. Set it inside `flow`: the
|
|
8286
|
+
server ignores a top-level `_selectedPageGeneratorId`.
|
|
8287
|
+
examples:
|
|
8288
|
+
- 61f92026dd053843b5d72350
|
|
7617
8289
|
additionalProperties: true
|
|
7618
8290
|
_pageProcessorId:
|
|
7619
8291
|
type: string
|
|
@@ -7623,14 +8295,6 @@ components:
|
|
|
7623
8295
|
in `pageProcessorMap`.
|
|
7624
8296
|
examples:
|
|
7625
8297
|
- 64a1234567890abcdef12345
|
|
7626
|
-
_selectedPageGeneratorId:
|
|
7627
|
-
type: string
|
|
7628
|
-
format: objectId
|
|
7629
|
-
description: |-
|
|
7630
|
-
Page generator to drive the preview when the flow has multiple.
|
|
7631
|
-
Defaults to `flow.pageGenerators[0]._exportId`.
|
|
7632
|
-
examples:
|
|
7633
|
-
- 61f92026dd053843b5d72350
|
|
7634
8298
|
pageGeneratorMap:
|
|
7635
8299
|
type: object
|
|
7636
8300
|
description: |-
|
|
@@ -7669,10 +8333,12 @@ components:
|
|
|
7669
8333
|
the mock input the editor's "Mock input" pane would provide.
|
|
7670
8334
|
Upstream entries carry `{}`.
|
|
7671
8335
|
Request composition is adaptor-gated: the `preview`/`sendAndPreview`
|
|
7672
|
-
modes work for HTTP, REST, and GraphQL import targets —
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
no
|
|
8336
|
+
modes work for HTTP, REST, and GraphQL import targets — a NetSuite,
|
|
8337
|
+
Salesforce, RDBMS or FTP import target fails with
|
|
8338
|
+
`422 no_data_available` regardless of supplied input (those
|
|
8339
|
+
adaptors have no request-preview surface; only the no-flag
|
|
8340
|
+
input-data preview works for them, and the virtual import
|
|
8341
|
+
`POST /v1/connections/{_id}/import` executes them).
|
|
7676
8342
|
additionalProperties:
|
|
7677
8343
|
type: object
|
|
7678
8344
|
properties:
|
|
@@ -7686,7 +8352,8 @@ components:
|
|
|
7686
8352
|
64a1234567890abcdef12345:
|
|
7687
8353
|
doc:
|
|
7688
8354
|
_id: 64a1234567890abcdef12345
|
|
7689
|
-
name:
|
|
8355
|
+
name: Create orders in the destination API
|
|
8356
|
+
adaptorType: HTTPImport
|
|
7690
8357
|
_connectionId: 5f7c579b6411271af4e7cefb
|
|
7691
8358
|
options:
|
|
7692
8359
|
preview: true
|
|
@@ -7700,7 +8367,7 @@ components:
|
|
|
7700
8367
|
the response carries the records the target would receive as input
|
|
7701
8368
|
(for a lookup step, with its `responseMapping` already merged in).
|
|
7702
8369
|
required:
|
|
7703
|
-
-
|
|
8370
|
+
- flow
|
|
7704
8371
|
- _pageProcessorId
|
|
7705
8372
|
- pageGeneratorMap
|
|
7706
8373
|
- pageProcessorMap
|
|
@@ -7801,6 +8468,13 @@ components:
|
|
|
7801
8468
|
description: Display name of the dependent resource.
|
|
7802
8469
|
examples:
|
|
7803
8470
|
- Import Orders to NetSuite
|
|
8471
|
+
type:
|
|
8472
|
+
type: string
|
|
8473
|
+
description: |-
|
|
8474
|
+
Sub-type of the dependent resource when its collection distinguishes one, such as
|
|
8475
|
+
`stream` for a listener export. Only present for resource types that carry a `type`.
|
|
8476
|
+
examples:
|
|
8477
|
+
- stream
|
|
7804
8478
|
paths:
|
|
7805
8479
|
type: array
|
|
7806
8480
|
description: |-
|
|
@@ -7864,6 +8538,19 @@ components:
|
|
|
7864
8538
|
export:
|
|
7865
8539
|
- 64ff4b21612a134bd2f45534
|
|
7866
8540
|
responses:
|
|
8541
|
+
400-bad-request:
|
|
8542
|
+
description: |
|
|
8543
|
+
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
|
8544
|
+
content:
|
|
8545
|
+
application/json:
|
|
8546
|
+
schema:
|
|
8547
|
+
$ref: '#/components/schemas/Error'
|
|
8548
|
+
examples:
|
|
8549
|
+
default:
|
|
8550
|
+
value:
|
|
8551
|
+
errors:
|
|
8552
|
+
- code: invalid_request
|
|
8553
|
+
message: The request body failed validation.
|
|
7867
8554
|
401-unauthorized:
|
|
7868
8555
|
description: |-
|
|
7869
8556
|
Unauthorized. The request lacks a valid bearer token, or the provided token
|
|
@@ -7898,19 +8585,6 @@ components:
|
|
|
7898
8585
|
summary: Bearer token invalid or revoked
|
|
7899
8586
|
value:
|
|
7900
8587
|
message: Bearer Authentication Failed
|
|
7901
|
-
400-bad-request:
|
|
7902
|
-
description: |
|
|
7903
|
-
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
|
7904
|
-
content:
|
|
7905
|
-
application/json:
|
|
7906
|
-
schema:
|
|
7907
|
-
$ref: '#/components/schemas/Error'
|
|
7908
|
-
examples:
|
|
7909
|
-
default:
|
|
7910
|
-
value:
|
|
7911
|
-
errors:
|
|
7912
|
-
- code: invalid_request
|
|
7913
|
-
message: The request body failed validation.
|
|
7914
8588
|
422-unprocessable-entity:
|
|
7915
8589
|
description: |
|
|
7916
8590
|
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
|
@@ -7951,5 +8625,18 @@ components:
|
|
|
7951
8625
|
errors:
|
|
7952
8626
|
- code: dependencies_not_deleted
|
|
7953
8627
|
message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
|
|
8628
|
+
403-forbidden:
|
|
8629
|
+
description: |
|
|
8630
|
+
Forbidden. The authenticated caller does not have permission to perform this operation.
|
|
8631
|
+
content:
|
|
8632
|
+
application/json:
|
|
8633
|
+
schema:
|
|
8634
|
+
$ref: '#/components/schemas/Error'
|
|
8635
|
+
examples:
|
|
8636
|
+
default:
|
|
8637
|
+
value:
|
|
8638
|
+
errors:
|
|
8639
|
+
- code: forbidden
|
|
8640
|
+
message: You do not have permission to access this resource.
|
|
7954
8641
|
x-enable-proxy: true
|
|
7955
8642
|
x-internal: false
|