@celigo/api-specs 0.2.258 → 0.2.260
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/dist/ai-agent.yml +110 -16
- package/dist/editransaction.yml +28 -2
- package/dist/export.yml +218 -52
- package/dist/flow.yml +242 -14
- package/dist/guardrail.yml +27 -0
- package/dist/import.yml +168 -27
- package/dist/mcp-server.yml +120 -10
- package/dist/tool.yml +133 -34
- package/package.json +1 -1
- package/schemas.json +66 -44
package/dist/mcp-server.yml
CHANGED
|
@@ -462,11 +462,13 @@ paths:
|
|
|
462
462
|
grants that referenced the erased sets, clearing `policies` removes every
|
|
463
463
|
traffic limit, and — by the platform contract — dropping a connection
|
|
464
464
|
that required end-user credentials invalidates the end users' `mcpChild`
|
|
465
|
-
connections for it unless another server still requires them.
|
|
466
|
-
way round: `upstreamMcpConnections` and `
|
|
467
|
-
stored value when omitted — send `[]` or `null`
|
|
468
|
-
|
|
469
|
-
current upstream definitions. `
|
|
465
|
+
connections for it unless another server still requires them. Three fields work the other
|
|
466
|
+
way round: `upstreamMcpConnections`, `_networkPolicyId` and `logging` keep their
|
|
467
|
+
stored value when omitted — send `[]` or `null` to clear the first two
|
|
468
|
+
— and a PUT that includes `upstreamMcpConnections` re-approves the
|
|
469
|
+
current upstream definitions. A `logging.mode` the account cannot use
|
|
470
|
+
is rejected the same way as on PATCH (422 `payload_storage_required`).
|
|
471
|
+
`_templateId` is ignored. `relativeURI`
|
|
470
472
|
can be changed but must remain unique per account.
|
|
471
473
|
operationId: updateMcpServer
|
|
472
474
|
tags:
|
|
@@ -611,7 +613,8 @@ paths:
|
|
|
611
613
|
GET the server first and send the complete document back: every array
|
|
612
614
|
except upstreamMcpConnections is replaced by what you send and cleared
|
|
613
615
|
when omitted, so a PUT built from a partial document silently drops
|
|
614
|
-
tools, connections, permission sets, and traffic limits.
|
|
616
|
+
tools, connections, permission sets, and traffic limits. An omitted
|
|
617
|
+
logging object is kept, like upstreamMcpConnections and _networkPolicyId.
|
|
615
618
|
- |-
|
|
616
619
|
Enabling the server (disabled: false) needs at least one enabled tool,
|
|
617
620
|
API, prompt, or resource, or one enabled and available upstream row;
|
|
@@ -622,9 +625,18 @@ paths:
|
|
|
622
625
|
description: |-
|
|
623
626
|
Partially updates an MCP server using a JSON Patch document (RFC 6902).
|
|
624
627
|
The whitelisted paths are `/name`, `/disabled`, `/policies`,
|
|
625
|
-
`/_networkPolicyId`,
|
|
628
|
+
`/_networkPolicyId`, `/logging/mode`, `/logging/debugUntil`, and
|
|
629
|
+
`/upstreamMcpConnections/{index}/alias` — every
|
|
626
630
|
other path, including the whole `/upstreamMcpConnections` array and any
|
|
627
631
|
nested upstream row, is rejected with 422 `not a whitelisted property`.
|
|
632
|
+
`/logging/mode` takes `replace` with one of the request-log modes;
|
|
633
|
+
`/logging/debugUntil` takes `replace` with a future date-time to start a
|
|
634
|
+
debug window and `remove` to end it early (a `remove` with no window set
|
|
635
|
+
is accepted and changes nothing). Payload storage must be enabled for
|
|
636
|
+
the account for `standard`, `detailed` and a debug window — 422
|
|
637
|
+
`payload_storage_required` for the two modes, 422 `not_allowed` for the
|
|
638
|
+
window; `basic` and `noLogging` need no payload storage — and a mode
|
|
639
|
+
outside the set, in any other spelling, is 422 `invalid_logging_mode`.
|
|
628
640
|
Under `/policies`, `add`, `replace`, and `remove` work on the whole
|
|
629
641
|
array, `add` works at `/policies/-` or an index, and `replace` works at
|
|
630
642
|
an index or a sub-path such as `/policies/0/config/limit`; `remove` at
|
|
@@ -723,6 +735,23 @@ paths:
|
|
|
723
735
|
- op: replace
|
|
724
736
|
path: /upstreamMcpConnections/0/alias
|
|
725
737
|
value: wiki
|
|
738
|
+
set_log_mode:
|
|
739
|
+
summary: Store the request and response payloads of every request
|
|
740
|
+
value:
|
|
741
|
+
- op: replace
|
|
742
|
+
path: /logging/mode
|
|
743
|
+
value: standard
|
|
744
|
+
start_debug_window:
|
|
745
|
+
summary: Capture full detail until a time at most the plan's debug limit away
|
|
746
|
+
value:
|
|
747
|
+
- op: replace
|
|
748
|
+
path: /logging/debugUntil
|
|
749
|
+
value: '2026-10-27T09:30:00.000Z'
|
|
750
|
+
stop_debug_window:
|
|
751
|
+
summary: End the debug window early
|
|
752
|
+
value:
|
|
753
|
+
- op: remove
|
|
754
|
+
path: /logging/debugUntil
|
|
726
755
|
responses:
|
|
727
756
|
'204':
|
|
728
757
|
description: Patch applied.
|
|
@@ -733,7 +762,8 @@ paths:
|
|
|
733
762
|
'422':
|
|
734
763
|
description: |-
|
|
735
764
|
The patch names a path outside the whitelist, an invalid
|
|
736
|
-
`_networkPolicyId`, an invalid policy,
|
|
765
|
+
`_networkPolicyId`, an invalid policy, a request-log mode or debug
|
|
766
|
+
window the account cannot use, or would enable a server with
|
|
737
767
|
nothing enabled.
|
|
738
768
|
content:
|
|
739
769
|
application/json:
|
|
@@ -744,6 +774,26 @@ paths:
|
|
|
744
774
|
value:
|
|
745
775
|
errors:
|
|
746
776
|
- message: /description is not a whitelisted property
|
|
777
|
+
payload_storage_required:
|
|
778
|
+
summary: standard or detailed while the account's payload storage is off
|
|
779
|
+
value:
|
|
780
|
+
errors:
|
|
781
|
+
- field: logging.mode
|
|
782
|
+
code: payload_storage_required
|
|
783
|
+
message: The McpServer logging mode cannot be set to standard as payload storage is not enabled.
|
|
784
|
+
invalid_logging_mode:
|
|
785
|
+
value:
|
|
786
|
+
errors:
|
|
787
|
+
- field: logging.mode
|
|
788
|
+
code: invalid_logging_mode
|
|
789
|
+
message: The logging mode debug is not valid for model McpServer. Supported modes are basic, standard, detailed, noLogging.
|
|
790
|
+
debug_window_not_allowed:
|
|
791
|
+
summary: A debug window while the account's payload storage is off
|
|
792
|
+
value:
|
|
793
|
+
errors:
|
|
794
|
+
- field: logging.debugUntil
|
|
795
|
+
code: not_allowed
|
|
796
|
+
message: The McpServer logging mode cannot be set to debug as payload storage is not enabled.
|
|
747
797
|
enablement:
|
|
748
798
|
value:
|
|
749
799
|
errors:
|
|
@@ -4483,6 +4533,66 @@ components:
|
|
|
4483
4533
|
document, PATCH `replace /policies` with the complete array.
|
|
4484
4534
|
items:
|
|
4485
4535
|
$ref: '#/components/schemas/Policy'
|
|
4536
|
+
logging:
|
|
4537
|
+
type: object
|
|
4538
|
+
description: |-
|
|
4539
|
+
How much of each MCP request this server keeps in its request log
|
|
4540
|
+
(`GET /v1/mcpservers/{_id}/logs`). Every request is recorded as a
|
|
4541
|
+
log entry — method, outcome, timing, caller and the capability it
|
|
4542
|
+
targeted — whatever the mode. The mode decides two further things:
|
|
4543
|
+
whether the request and response payload is stored (the entry's
|
|
4544
|
+
`hasPayload`, payload only), and how much execution detail a Celigo
|
|
4545
|
+
Tool call's run keeps — the run trace itself is reached through the
|
|
4546
|
+
entry's non-empty `invocationId`, not through `hasPayload`. New
|
|
4547
|
+
servers are created with `{"mode": "basic"}`. Changed with
|
|
4548
|
+
`PATCH /v1/mcpservers/{_id}` on the `/logging/mode` and
|
|
4549
|
+
`/logging/debugUntil` paths, or by sending the object on PUT;
|
|
4550
|
+
omitted on PUT, the stored value is kept. A change applies to the
|
|
4551
|
+
requests that follow it, not to entries already recorded. While
|
|
4552
|
+
payload storage is off for the account, requests are recorded as
|
|
4553
|
+
entries only whatever the stored mode.
|
|
4554
|
+
properties:
|
|
4555
|
+
mode:
|
|
4556
|
+
type: string
|
|
4557
|
+
enum:
|
|
4558
|
+
- noLogging
|
|
4559
|
+
- basic
|
|
4560
|
+
- standard
|
|
4561
|
+
- detailed
|
|
4562
|
+
x-enumDescriptions:
|
|
4563
|
+
noLogging: Record the request entry only; no request or response payload is stored
|
|
4564
|
+
basic: Store the request and response payloads of errored requests only
|
|
4565
|
+
standard: Store the request and response payloads of every request
|
|
4566
|
+
detailed: Store every request and response payload together with the full execution detail of each Celigo Tool call
|
|
4567
|
+
description: |-
|
|
4568
|
+
Capture level for the requests this server handles. `standard`
|
|
4569
|
+
and `detailed` need payload storage enabled for the account;
|
|
4570
|
+
without it the write is rejected with 422
|
|
4571
|
+
`payload_storage_required`. `basic` is accepted while payload
|
|
4572
|
+
storage is off and stores entries only until it is on. Values
|
|
4573
|
+
are case-sensitive — any other spelling is rejected with 422
|
|
4574
|
+
`invalid_logging_mode`.
|
|
4575
|
+
When the account's plan changes to one with a lower logging
|
|
4576
|
+
ceiling, a stored mode above it is lowered by the platform (the
|
|
4577
|
+
`standard` level counts as `basic` for that ceiling).
|
|
4578
|
+
examples:
|
|
4579
|
+
- standard
|
|
4580
|
+
debugUntil:
|
|
4581
|
+
type: string
|
|
4582
|
+
format: date-time
|
|
4583
|
+
description: |-
|
|
4584
|
+
While this timestamp is in the future, every request is captured
|
|
4585
|
+
with full payloads and execution detail regardless of `mode`;
|
|
4586
|
+
once it passes, the stored `mode` applies again without any
|
|
4587
|
+
further write. Set it to a future time; it needs payload storage
|
|
4588
|
+
enabled for the account (422 `not_allowed` otherwise). The UI
|
|
4589
|
+
offers windows up to the plan's debug allowance, and a window
|
|
4590
|
+
longer than a new plan allows is cleared by the platform when
|
|
4591
|
+
the plan changes. Clear an active window with a PATCH `remove` —
|
|
4592
|
+
removing it when none is set is accepted and changes nothing.
|
|
4593
|
+
Absent from responses when no window is set.
|
|
4594
|
+
examples:
|
|
4595
|
+
- '2026-10-27T09:30:00.000Z'
|
|
4486
4596
|
oauth:
|
|
4487
4597
|
$ref: '#/components/schemas/OAuthConfig'
|
|
4488
4598
|
ResourceResponse:
|
|
@@ -4617,8 +4727,8 @@ components:
|
|
|
4617
4727
|
Request body for creating or updating an MCP server. On PUT, include the
|
|
4618
4728
|
full `connections`, `tools`, `apis`, `prompts`, `resources`,
|
|
4619
4729
|
`permissionSets`, and `policies` arrays because omitted arrays are
|
|
4620
|
-
cleared; `upstreamMcpConnections` and `
|
|
4621
|
-
exceptions and keep their stored value when omitted. Every array entry
|
|
4730
|
+
cleared; `upstreamMcpConnections`, `_networkPolicyId` and `logging` are
|
|
4731
|
+
the exceptions and keep their stored value when omitted. Every array entry
|
|
4622
4732
|
must be an object — a `null` entry in `tools`, `apis`, `prompts`,
|
|
4623
4733
|
`resources`, or `upstreamMcpConnections` is rejected with 422
|
|
4624
4734
|
`mcp_server_invalid_array_item`. Use PATCH to update individual fields
|
package/dist/tool.yml
CHANGED
|
@@ -13904,6 +13904,8 @@ components:
|
|
|
13904
13904
|
Required whenever the connection referenced by _connectionId has type http, and on
|
|
13905
13905
|
`NetSuiteHTTPImport` (NetSuite's REST APIs on a `netsuite` connection, where `nsDomainType`
|
|
13906
13906
|
supplies the host).
|
|
13907
|
+
`ignoreExisting`, `ignoreMissing` and `ignoreExtract` are import-level fields; copies sent
|
|
13908
|
+
inside this object are dropped without an error, so nothing is skipped.
|
|
13907
13909
|
x-celigo-ai-guidance:
|
|
13908
13910
|
- |-
|
|
13909
13911
|
IMPORTANT:
|
|
@@ -14469,8 +14471,9 @@ components:
|
|
|
14469
14471
|
a serialized batch. The template root depends ONLY on
|
|
14470
14472
|
``batchSize`` (live-verified 2026-09-10): with ``batchSize`` 1
|
|
14471
14473
|
(the default) the root carries ``record`` (an object record —
|
|
14472
|
-
or
|
|
14473
|
-
(a grouped/array record
|
|
14474
|
+
or an object child fanned out by ``oneToMany``) or ``rows``
|
|
14475
|
+
(a grouped/array record, including a fanned-out child that is
|
|
14476
|
+
itself an array), and ``data`` is the one-element list
|
|
14474
14477
|
of records in the request (a grouped record is that element,
|
|
14475
14478
|
itself an array); with ``batchSize`` > 1 the root carries
|
|
14476
14479
|
``batch_of_records`` (one ``{record: …}`` item per object
|
|
@@ -15180,6 +15183,11 @@ components:
|
|
|
15180
15183
|
|
|
15181
15184
|
- **Static** — only ``map`` + optional ``default``. No HTTP
|
|
15182
15185
|
request issued. Use for small controlled vocabularies.
|
|
15186
|
+
Never add a ``map`` to a working request lookup: an entry that
|
|
15187
|
+
carries both saves without error, but only the map is used and
|
|
15188
|
+
the request is never sent, so every value the map lacks is a
|
|
15189
|
+
miss (``default``, or ``lookup_error`` under
|
|
15190
|
+
``allowFailures: false``) instead of the looked-up value.
|
|
15183
15191
|
- **Dynamic** — ``method`` + ``relativeURI`` (+ ``body``,
|
|
15184
15192
|
``headers``, ``extract``). Issues a live HTTP request per
|
|
15185
15193
|
lookup. Adds one HTTP request per record at runtime — factor
|
|
@@ -15273,10 +15281,13 @@ components:
|
|
|
15273
15281
|
- object
|
|
15274
15282
|
- 'null'
|
|
15275
15283
|
description: |
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
value is
|
|
15279
|
-
|
|
15284
|
+
Static key→value table. A lookup whose ``map`` holds any entry
|
|
15285
|
+
is static: a matching value returns the mapped value and any
|
|
15286
|
+
other value is a miss settled by ``default`` and
|
|
15287
|
+
``allowFailures``, with no HTTP request — ``method``,
|
|
15288
|
+
``relativeURI`` and ``extract`` saved beside it are never sent.
|
|
15289
|
+
Omit it on a request lookup; ``null`` is stored as sent and
|
|
15290
|
+
``{}`` is dropped on save, and either way the request runs.
|
|
15280
15291
|
default:
|
|
15281
15292
|
type:
|
|
15282
15293
|
- string
|
|
@@ -18745,7 +18756,7 @@ components:
|
|
|
18745
18756
|
- function
|
|
18746
18757
|
Salesforce-2:
|
|
18747
18758
|
type: object
|
|
18748
|
-
description: 'Salesforce-specific configuration for the import: the operation to perform, the API to use, and object-level settings such as `sObjectType`, `idLookup`, and `upsert`. Properties like `ignoreExisting`, `ignoreMissing`, `name`, and `description` are not part of this object — they belong at the import level.'
|
|
18759
|
+
description: 'Salesforce-specific configuration for the import: the operation to perform, the API to use, and object-level settings such as `sObjectType`, `idLookup`, and `upsert`. Properties like `ignoreExisting`, `ignoreMissing`, `name`, and `description` are not part of this object — they belong at the import level. An `ignoreExisting` sent inside this object is dropped without an error, so the import does not skip existing records.'
|
|
18749
18760
|
x-celigo-ai-guidance:
|
|
18750
18761
|
- |-
|
|
18751
18762
|
Configuration for Salesforce imports containing operation type, API selection,
|
|
@@ -19415,13 +19426,12 @@ components:
|
|
|
19415
19426
|
```json
|
|
19416
19427
|
{
|
|
19417
19428
|
"operation": "insert",
|
|
19418
|
-
"ignoreExisting": true,
|
|
19419
19429
|
"idLookup": {
|
|
19420
19430
|
"whereClause": "Email = '{{{Email}}}'"
|
|
19421
19431
|
}
|
|
19422
19432
|
}
|
|
19423
19433
|
```
|
|
19424
|
-
|
|
19434
|
+
With `ignoreExisting: true` set at the import level (not in this object), checks if a record with matching Email exists; if found, skips creation
|
|
19425
19435
|
|
|
19426
19436
|
### Addupdate (create or update) by Email:
|
|
19427
19437
|
```json
|
|
@@ -22201,6 +22211,32 @@ components:
|
|
|
22201
22211
|
the array index.
|
|
22202
22212
|
resources:
|
|
22203
22213
|
$ref: '#/components/schemas/McpResources'
|
|
22214
|
+
attachedKnowledgeBaseIds:
|
|
22215
|
+
type: array
|
|
22216
|
+
maxItems: 50
|
|
22217
|
+
uniqueItems: true
|
|
22218
|
+
default: []
|
|
22219
|
+
description: |-
|
|
22220
|
+
Knowledge bases the agent retrieves from, for every provider. Returned on every agent —
|
|
22221
|
+
`[]` until one is attached — except after a PATCH `remove`, which drops the field. On PUT
|
|
22222
|
+
a non-empty array replaces the stored list (duplicate ids collapse to their first
|
|
22223
|
+
occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
22224
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
22225
|
+
`/aiAgent/attachedKnowledgeBaseIds`.
|
|
22226
|
+
items:
|
|
22227
|
+
type: string
|
|
22228
|
+
format: objectId
|
|
22229
|
+
x-celigo-refModel: knowledgebases
|
|
22230
|
+
x-celigo-ai-guidance:
|
|
22231
|
+
- |-
|
|
22232
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
22233
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
22234
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
22235
|
+
ids fails with 422 `invalid_field` on `aiAgent.attachedKnowledgeBaseIds`.
|
|
22236
|
+
- |-
|
|
22237
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
22238
|
+
`remove` on the whole path. PATCH `add` at `/aiAgent/attachedKnowledgeBaseIds/-`
|
|
22239
|
+
does not append — it fails with 422 — so send the complete list with `replace`.
|
|
22204
22240
|
openai:
|
|
22205
22241
|
type: object
|
|
22206
22242
|
description: |
|
|
@@ -23719,6 +23755,33 @@ components:
|
|
|
23719
23755
|
the array index.
|
|
23720
23756
|
resources:
|
|
23721
23757
|
$ref: '#/components/schemas/McpResources'
|
|
23758
|
+
attachedKnowledgeBaseIds:
|
|
23759
|
+
type: array
|
|
23760
|
+
maxItems: 50
|
|
23761
|
+
uniqueItems: true
|
|
23762
|
+
description: |-
|
|
23763
|
+
Knowledge bases the guardrail's model retrieves from, for every provider. Present only once
|
|
23764
|
+
set: a guardrail created without the list has no field, and a PATCH `remove` drops it
|
|
23765
|
+
again. On PUT a non-empty array replaces the stored list (duplicate ids collapse to their
|
|
23766
|
+
first occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
23767
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
23768
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds`.
|
|
23769
|
+
items:
|
|
23770
|
+
type: string
|
|
23771
|
+
format: objectId
|
|
23772
|
+
x-celigo-refModel: knowledgebases
|
|
23773
|
+
x-celigo-ai-guidance:
|
|
23774
|
+
- |-
|
|
23775
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
23776
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
23777
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
23778
|
+
ids fails with 422 `invalid_field` on `guardrail.aiAgent.attachedKnowledgeBaseIds`
|
|
23779
|
+
(the message names `aiAgent.attachedKnowledgeBaseIds`).
|
|
23780
|
+
- |-
|
|
23781
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
23782
|
+
`remove` on the whole path. PATCH `add` at
|
|
23783
|
+
`/guardrail/aiAgent/attachedKnowledgeBaseIds/-` does not append — it fails with
|
|
23784
|
+
422 — so send the complete list with `replace`.
|
|
23722
23785
|
openai:
|
|
23723
23786
|
type: object
|
|
23724
23787
|
description: |
|
|
@@ -24901,7 +24964,9 @@ components:
|
|
|
24901
24964
|
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
24902
24965
|
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
24903
24966
|
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
24904
|
-
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
24967
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
|
|
24968
|
+
exception is an array record whose children sit under a single element's field: its path
|
|
24969
|
+
starts with that element's index (``0.items``) — see ``pathToMany``.
|
|
24905
24970
|
- |-
|
|
24906
24971
|
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
24907
24972
|
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
@@ -24913,14 +24978,29 @@ components:
|
|
|
24913
24978
|
- |-
|
|
24914
24979
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
24915
24980
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
24916
|
-
itself, with no ``_PARENT``. In both modes templates on the step reference
|
|
24981
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
24917
24982
|
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
24918
24983
|
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
24919
24984
|
mode) with every element enriched.
|
|
24985
|
+
- |-
|
|
24986
|
+
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
24987
|
+
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
24988
|
+
``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
|
|
24989
|
+
in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
|
|
24990
|
+
no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
|
|
24991
|
+
``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
|
|
24992
|
+
flow runs.
|
|
24993
|
+
- |-
|
|
24994
|
+
An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
|
|
24995
|
+
JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
|
|
24996
|
+
``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
|
|
24997
|
+
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
24998
|
+
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
24999
|
+
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
24920
25000
|
- |-
|
|
24921
25001
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
24922
25002
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
24923
|
-
With the default batch size the template root is ``record
|
|
25003
|
+
With the default batch size the template root is ``record`` (``rows`` for an array child).
|
|
24924
25004
|
default: false
|
|
24925
25005
|
examples:
|
|
24926
25006
|
- true
|
|
@@ -24928,11 +25008,13 @@ components:
|
|
|
24928
25008
|
PathToMany:
|
|
24929
25009
|
type: string
|
|
24930
25010
|
description: |
|
|
24931
|
-
Path to the array of child records
|
|
24932
|
-
|
|
24933
|
-
|
|
24934
|
-
|
|
24935
|
-
|
|
25011
|
+
Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
|
|
25012
|
+
`lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
|
|
25013
|
+
row-based data) and each element is a child record; when an array record's children sit under
|
|
25014
|
+
one element's field, start the path with that element's index (`0.items`). A path that does not
|
|
25015
|
+
resolve to an array processes zero records and reports success. Read only on steps that receive
|
|
25016
|
+
a record (imports, lookup exports); on a standalone export it is saved and ignored — see
|
|
25017
|
+
`oneToMany`.
|
|
24936
25018
|
x-celigo-ai-guidance:
|
|
24937
25019
|
- |-
|
|
24938
25020
|
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
@@ -24940,19 +25022,30 @@ components:
|
|
|
24940
25022
|
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
24941
25023
|
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
24942
25024
|
- |-
|
|
24943
|
-
|
|
24944
|
-
On an array record (a ``groupByFields`` export, a CSV/file
|
|
24945
|
-
|
|
24946
|
-
|
|
24947
|
-
|
|
25025
|
+
Start the path with a field name ONLY when the record entering the step is an object whose
|
|
25026
|
+
children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
|
|
25027
|
+
group, a script returning an array) a path that starts with a field name resolves to nothing:
|
|
25028
|
+
the step processes ZERO children, builds no request, and reports success with no error.
|
|
25029
|
+
Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
|
|
25030
|
+
run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
25031
|
+
- |-
|
|
25032
|
+
On an array record only a path that starts with an element index resolves:
|
|
25033
|
+
``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
|
|
25034
|
+
field. An index past the last element fans out zero children with the same silent success.
|
|
25035
|
+
Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
|
|
25036
|
+
export.
|
|
24948
25037
|
- |-
|
|
24949
25038
|
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
24950
25039
|
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
24951
25040
|
configuration. An empty string behaves exactly like an absent field.
|
|
24952
25041
|
- |-
|
|
24953
|
-
Use the bare field name or dotted path (``lineItems``, ``details.items``
|
|
24954
|
-
expression. Each child in path mode carries ``_PARENT`` (the
|
|
24955
|
-
parent-level fields
|
|
25042
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
|
|
25043
|
+
array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
|
|
25044
|
+
parent minus the array), so an object child reads parent-level fields as
|
|
25045
|
+
``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
|
|
25046
|
+
minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
|
|
25047
|
+
``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
|
|
25048
|
+
instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
|
|
24956
25049
|
examples:
|
|
24957
25050
|
- items
|
|
24958
25051
|
- line_items
|
|
@@ -39416,18 +39509,24 @@ components:
|
|
|
39416
39509
|
`webhook` object when `type` is `webhook`); an HTTP or SQL `delta` export saves without a
|
|
39417
39510
|
`delta` object because its request carries `{{lastExportDateTime}}`, though
|
|
39418
39511
|
`delta.startDate` sets its first window. It still needs `type: delta`: on an export
|
|
39419
|
-
with no `type` (or `all
|
|
39420
|
-
|
|
39421
|
-
|
|
39422
|
-
|
|
39423
|
-
|
|
39424
|
-
|
|
39425
|
-
|
|
39512
|
+
with no `type` (or `all`), `{{lastExportDateTime}}` and `{{currentExportDateTime}}` are
|
|
39513
|
+
not defined, and where that leaves an HTTP export's run depends on which part of the
|
|
39514
|
+
request carries them. Bare in `http.body` they render empty, so the body goes out with
|
|
39515
|
+
blank values each time; bare in `http.relativeURI` or a header, the run fails before
|
|
39516
|
+
anything is sent with `handlebars_template_parse_error`, "Failed to generate request url
|
|
39517
|
+
(or headers) from template … Details: "lastExportDateTime" not defined in the model".
|
|
39518
|
+
Under `type: test` they are defined but empty, so the URI, a header or the body goes out
|
|
39519
|
+
with blank values instead. `dateFormat` on one renders the run's current time (the
|
|
39520
|
+
request asks for changes since now), and `dateAdd` on one fails the whole render in the
|
|
39521
|
+
body or the relative URI alike — `handlebars_template_parse_error`, "Failed to generate
|
|
39522
|
+
request body (or url) from template … Details: Invalid time value" (live-verified
|
|
39523
|
+
2026-10-22, 2026-11-04 and 2026-11-06). When incremental reads are intended, restoring
|
|
39426
39524
|
`type: delta` (with `delta.startDate` for the first window) makes the variables resolve;
|
|
39427
39525
|
when reading everything is intended, change the template — drop the variable or guard it
|
|
39428
39526
|
with `{{#if lastExportDateTime}}…{{else}}fallback{{/if}}`, whose else branch (a literal, in
|
|
39429
|
-
practice a fixed start date) renders
|
|
39430
|
-
`type: test`. Use `blob` only to transfer raw files
|
|
39527
|
+
practice a fixed start date) renders, in the relative URI as well as the body, on an
|
|
39528
|
+
export with no `type`, `type: all` or `type: test`. Use `blob` only to transfer raw files
|
|
39529
|
+
without parsing their contents.
|
|
39431
39530
|
x-celigo-ai-guidance:
|
|
39432
39531
|
- |-
|
|
39433
39532
|
## HOW TO PICK THE TYPE VALUE
|