@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/integration.yml
CHANGED
|
@@ -25,7 +25,9 @@ tags:
|
|
|
25
25
|
- **Standard integrations** — user-created containers that group custom flows.
|
|
26
26
|
- **Integration App installations** — created from a published connector/template,
|
|
27
27
|
with install/uninstall steps, settings forms, editions, and optional child
|
|
28
|
-
integrations.
|
|
28
|
+
integrations. `_connectorId` is what identifies one. The wizard fields (`mode`,
|
|
29
|
+
`install`, `installSteps`) also appear on a standard integration created by the
|
|
30
|
+
UI's clone-and-install, so they do not by themselves mean Integration App.
|
|
29
31
|
|
|
30
32
|
Integrations support **Integration Lifecycle Management (ILM)**: clone an integration
|
|
31
33
|
across environments, then use revisions (snapshot, pull, revert) to promote changes
|
|
@@ -99,8 +101,10 @@ paths:
|
|
|
99
101
|
summary: Create an integration
|
|
100
102
|
description: |-
|
|
101
103
|
Creates a new integration. Only `name` is required — the server populates all other
|
|
102
|
-
fields with defaults. Do not include
|
|
103
|
-
|
|
104
|
+
fields with defaults. Do not include `_connectorId` unless you are creating an
|
|
105
|
+
Integration App installation, or `_templateId` unless the integration is created from
|
|
106
|
+
a template; leave the install-wizard fields (`mode`, `install`, `installSteps`) to the
|
|
107
|
+
platform's installers.
|
|
104
108
|
operationId: createIntegration
|
|
105
109
|
tags:
|
|
106
110
|
- Integrations
|
|
@@ -287,7 +291,9 @@ paths:
|
|
|
287
291
|
| `/flowGroupings` | Flow grouping configuration |
|
|
288
292
|
| `/apiGroupings` | API grouping configuration |
|
|
289
293
|
|
|
290
|
-
All other paths are rejected with `422`.
|
|
294
|
+
All other paths are rejected with `422`. A successful patch returns no body, so the
|
|
295
|
+
server-assigned `_id` of a grouping added through `/flowGroupings` or `/apiGroupings`
|
|
296
|
+
is only available from a follow-up `GET`.
|
|
291
297
|
operationId: patchIntegration
|
|
292
298
|
tags:
|
|
293
299
|
- Integrations
|
|
@@ -359,8 +365,8 @@ paths:
|
|
|
359
365
|
x-internal: false
|
|
360
366
|
summary: Clone an integration
|
|
361
367
|
description: |
|
|
362
|
-
Creates a copy of an existing integration.
|
|
363
|
-
|
|
368
|
+
Creates a copy of an existing integration. When the source has registered
|
|
369
|
+
connections, remap each one via `connectionMap`; mapped connections are reused, not cloned.
|
|
364
370
|
operationId: cloneIntegration
|
|
365
371
|
tags:
|
|
366
372
|
- Integrations
|
|
@@ -376,7 +382,7 @@ paths:
|
|
|
376
382
|
examples:
|
|
377
383
|
- 69680d7111d1437fbcbce534
|
|
378
384
|
requestBody:
|
|
379
|
-
required:
|
|
385
|
+
required: true
|
|
380
386
|
content:
|
|
381
387
|
application/json:
|
|
382
388
|
schema:
|
|
@@ -385,13 +391,14 @@ paths:
|
|
|
385
391
|
cross_env_clone:
|
|
386
392
|
summary: Clone into another environment, remapping both connections
|
|
387
393
|
value:
|
|
388
|
-
|
|
394
|
+
name: Clone - Shopify → NetSuite Orders
|
|
395
|
+
envId: 67b123456789abcdef012345
|
|
389
396
|
connectionMap:
|
|
390
397
|
626168f90b6ef816b50c82d7: 64a1234567890abcdef12345
|
|
391
398
|
6553ebdeda62bb22e7fa81ff: 64a1234567890abcdef12346
|
|
392
399
|
responses:
|
|
393
|
-
'
|
|
394
|
-
description: Integration cloned successfully
|
|
400
|
+
'201':
|
|
401
|
+
description: Integration cloned successfully. Returns a manifest of the resources the clone created.
|
|
395
402
|
content:
|
|
396
403
|
application/json:
|
|
397
404
|
schema:
|
|
@@ -725,7 +732,9 @@ paths:
|
|
|
725
732
|
'400':
|
|
726
733
|
description: |-
|
|
727
734
|
Revision is not in a diffable state. Error code `invalid_revision_state`. Occurs on
|
|
728
|
-
snapshot revisions (no source to diff against), `canceled` revisions (diff dropped),
|
|
735
|
+
snapshot revisions (no source to diff against), `canceled` revisions (diff dropped),
|
|
736
|
+
`failed` revisions (read their cause from
|
|
737
|
+
`GET /v1/integrations/{_id}/revisions/{_revisionId}/errors` instead), and
|
|
729
738
|
`inprogress` revisions whose install steps haven't materialized yet.
|
|
730
739
|
content:
|
|
731
740
|
application/json:
|
|
@@ -741,6 +750,79 @@ paths:
|
|
|
741
750
|
$ref: '#/components/responses/401-unauthorized'
|
|
742
751
|
'404':
|
|
743
752
|
$ref: '#/components/responses/404-not-found'
|
|
753
|
+
/v1/integrations/{_id}/revisions/{_revisionId}/errors:
|
|
754
|
+
get:
|
|
755
|
+
x-internal: false
|
|
756
|
+
operationId: listIntegrationRevisionErrors
|
|
757
|
+
tags:
|
|
758
|
+
- Integrations
|
|
759
|
+
summary: List a failed revision's errors
|
|
760
|
+
description: |-
|
|
761
|
+
Returns the error records recorded while a `pull` or `revert` revision was being applied — the
|
|
762
|
+
same list the Revisions tab shows for a `failed` revision. Read this, not the diff, to learn why
|
|
763
|
+
a revision failed: `GET /v1/integrations/{_id}/revisions/{_revisionId}/diff` rejects `failed`
|
|
764
|
+
revisions with `invalid_revision_state`. Only `failed` revisions have error records; every
|
|
765
|
+
other state is rejected with the same `invalid_revision_state` code.
|
|
766
|
+
|
|
767
|
+
Each record names the resource the apply step rejected. Ids inside a message use the revision's
|
|
768
|
+
change-set keys: a `LifeCycleError` of the form `<type> - <id> references a deleted resource:
|
|
769
|
+
<type> - <id>.deleted` reports that the merged document still points at an entry the same change
|
|
770
|
+
set marks `.deleted`. The suffix is that marker, not the resource's state in the account — the
|
|
771
|
+
resource may still exist there.
|
|
772
|
+
parameters:
|
|
773
|
+
- name: _id
|
|
774
|
+
in: path
|
|
775
|
+
required: true
|
|
776
|
+
description: Integration id.
|
|
777
|
+
schema:
|
|
778
|
+
type: string
|
|
779
|
+
format: objectId
|
|
780
|
+
x-celigo-refModel: integrations
|
|
781
|
+
examples:
|
|
782
|
+
- 6842261335b64c0bcb308e4f
|
|
783
|
+
- name: _revisionId
|
|
784
|
+
in: path
|
|
785
|
+
required: true
|
|
786
|
+
description: Revision id. Must be a revision in `failed` state.
|
|
787
|
+
schema:
|
|
788
|
+
type: string
|
|
789
|
+
format: objectId
|
|
790
|
+
examples:
|
|
791
|
+
- 6a28d2af6d42eb08f8e863e7
|
|
792
|
+
responses:
|
|
793
|
+
'200':
|
|
794
|
+
description: Error records for the failed revision.
|
|
795
|
+
content:
|
|
796
|
+
application/json:
|
|
797
|
+
schema:
|
|
798
|
+
$ref: '#/components/schemas/RevisionErrorsResponse'
|
|
799
|
+
examples:
|
|
800
|
+
deleted_reference:
|
|
801
|
+
summary: Pull rejected because the merged integration references a removed lookup cache
|
|
802
|
+
value:
|
|
803
|
+
- _id: 6aaceb3c8b19ac878dd7cd41
|
|
804
|
+
code: LifeCycleError
|
|
805
|
+
message: integration - 6a90467b117405485e64787e references a deleted resource:lookupcache - 6aa912fd3ec91536bee07e41.deleted.
|
|
806
|
+
createdAt: '2026-09-18T07:41:37.675Z'
|
|
807
|
+
'400':
|
|
808
|
+
description: |-
|
|
809
|
+
Revision is not in `failed` state, so it has no error records. Error code
|
|
810
|
+
`invalid_revision_state` — returned for `completed`, `canceled`, and `inprogress` revisions
|
|
811
|
+
of every type, including snapshots.
|
|
812
|
+
content:
|
|
813
|
+
application/json:
|
|
814
|
+
schema:
|
|
815
|
+
$ref: '#/components/schemas/Error'
|
|
816
|
+
examples:
|
|
817
|
+
invalid_revision_state:
|
|
818
|
+
value:
|
|
819
|
+
errors:
|
|
820
|
+
- message: Failed to perform operation. Revision is in an invalid state
|
|
821
|
+
code: invalid_revision_state
|
|
822
|
+
'401':
|
|
823
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
824
|
+
'404':
|
|
825
|
+
$ref: '#/components/responses/404-not-found'
|
|
744
826
|
/v1/integrations/{_id}/errors:
|
|
745
827
|
get:
|
|
746
828
|
x-internal: false
|
|
@@ -1474,6 +1556,28 @@ paths:
|
|
|
1474
1556
|
description: |-
|
|
1475
1557
|
Removes a connection's registration from the integration. This does not delete the connection
|
|
1476
1558
|
itself -- it only removes it from the integration's registered-connections list.
|
|
1559
|
+
|
|
1560
|
+
Fails while any resource in the integration still uses the connection. Two references
|
|
1561
|
+
are known to count: any step in one of its flows, Tools, or APIs whose `_connectionId`
|
|
1562
|
+
is this connection -- every step is an export or import document, whatever its kind
|
|
1563
|
+
(lookup, listener, AI agent, guardrail, Tool wrapper, transfer) -- and an alias on the
|
|
1564
|
+
integration or one of its flows whose `_connectionId` points at it. Move the steps to
|
|
1565
|
+
another connection first (a whole flow at once with
|
|
1566
|
+
`PUT /v1/flows/{_id}/replaceConnection`; Tool and API steps through their own
|
|
1567
|
+
step-level `replaceConnection`), remove or retarget any alias that still points at it,
|
|
1568
|
+
then unregister.
|
|
1569
|
+
x-celigo-ai-guidance:
|
|
1570
|
+
- |-
|
|
1571
|
+
Before calling, list what the integration still binds to this connection: the
|
|
1572
|
+
`_connectionId` of every export and import in the integration
|
|
1573
|
+
(`GET /v1/integrations/{_id}/exports` and `/imports` cover flow, Tool, and API
|
|
1574
|
+
steps) and every `aliases[]._connectionId` on the integration and its flows. While
|
|
1575
|
+
any remain the platform returns 400 `not_allowed` -- "The connection is being actively
|
|
1576
|
+
used by the integration. Please ensure no integration resource is using the
|
|
1577
|
+
connection before deregistering." for a bound step, "This connection is being
|
|
1578
|
+
referenced by an alias. Delete the alias before deregistering the connection." for
|
|
1579
|
+
an alias. Aliases are separate from step bindings: retarget or remove the matching
|
|
1580
|
+
`aliases` entries on the integration or flow as their own write.
|
|
1477
1581
|
parameters:
|
|
1478
1582
|
- name: _id
|
|
1479
1583
|
in: path
|
|
@@ -1498,6 +1602,28 @@ paths:
|
|
|
1498
1602
|
responses:
|
|
1499
1603
|
'204':
|
|
1500
1604
|
description: Connection unregistered successfully. No body returned.
|
|
1605
|
+
'400':
|
|
1606
|
+
description: |-
|
|
1607
|
+
A resource in the integration still uses the connection -- a flow, Tool, or API
|
|
1608
|
+
step bound to it ("The connection is being actively used by the integration..."),
|
|
1609
|
+
or an alias on the integration or one of its flows that points at it ("This
|
|
1610
|
+
connection is being referenced by an alias. Delete the alias before deregistering
|
|
1611
|
+
the connection."). Error code: `not_allowed` for both.
|
|
1612
|
+
content:
|
|
1613
|
+
application/json:
|
|
1614
|
+
schema:
|
|
1615
|
+
$ref: '#/components/schemas/Error'
|
|
1616
|
+
examples:
|
|
1617
|
+
in_use:
|
|
1618
|
+
value:
|
|
1619
|
+
errors:
|
|
1620
|
+
- code: not_allowed
|
|
1621
|
+
message: The connection is being actively used by the integration. Please ensure no integration resource is using the connection before deregistering.
|
|
1622
|
+
alias_referenced:
|
|
1623
|
+
value:
|
|
1624
|
+
errors:
|
|
1625
|
+
- code: not_allowed
|
|
1626
|
+
message: This connection is being referenced by an alias. Delete the alias before deregistering the connection.
|
|
1501
1627
|
'401':
|
|
1502
1628
|
$ref: '#/components/responses/401-unauthorized'
|
|
1503
1629
|
'404':
|
|
@@ -1551,6 +1677,126 @@ paths:
|
|
|
1551
1677
|
$ref: '#/components/responses/401-unauthorized'
|
|
1552
1678
|
'404':
|
|
1553
1679
|
$ref: '#/components/responses/404-not-found'
|
|
1680
|
+
/v1/integrations/{_id}/lookupcaches:
|
|
1681
|
+
get:
|
|
1682
|
+
x-internal: false
|
|
1683
|
+
operationId: listIntegrationLookupCaches
|
|
1684
|
+
tags:
|
|
1685
|
+
- Integrations
|
|
1686
|
+
summary: List lookup caches registered to an integration
|
|
1687
|
+
description: |-
|
|
1688
|
+
Returns a bare array of full lookup cache objects for every cache in the integration's
|
|
1689
|
+
`_registeredLookupCacheIds`, sorted by `name`. Each element is the same shape as
|
|
1690
|
+
`GET /v1/lookupcaches/{_id}`. Rejects unknown integration ids with a 404.
|
|
1691
|
+
parameters:
|
|
1692
|
+
- name: _id
|
|
1693
|
+
in: path
|
|
1694
|
+
required: true
|
|
1695
|
+
description: Integration id.
|
|
1696
|
+
schema:
|
|
1697
|
+
type: string
|
|
1698
|
+
format: objectId
|
|
1699
|
+
x-celigo-refModel: integrations
|
|
1700
|
+
examples:
|
|
1701
|
+
- 6842261335b64c0bcb308e4f
|
|
1702
|
+
- name: limit
|
|
1703
|
+
in: query
|
|
1704
|
+
required: false
|
|
1705
|
+
description: Maximum number of lookup caches to return per page.
|
|
1706
|
+
schema:
|
|
1707
|
+
type: integer
|
|
1708
|
+
minimum: 1
|
|
1709
|
+
examples:
|
|
1710
|
+
- 100
|
|
1711
|
+
- $ref: '#/components/parameters/After'
|
|
1712
|
+
responses:
|
|
1713
|
+
'200':
|
|
1714
|
+
description: Array of lookup cache objects.
|
|
1715
|
+
headers:
|
|
1716
|
+
Link:
|
|
1717
|
+
description: |-
|
|
1718
|
+
RFC 5988 pagination link. Includes `<...>; rel="next"` with an `after` cursor when more
|
|
1719
|
+
caches remain; absent on the final page.
|
|
1720
|
+
schema:
|
|
1721
|
+
type: string
|
|
1722
|
+
content:
|
|
1723
|
+
application/json:
|
|
1724
|
+
schema:
|
|
1725
|
+
type: array
|
|
1726
|
+
items:
|
|
1727
|
+
$ref: '#/components/schemas/LookupCache'
|
|
1728
|
+
examples:
|
|
1729
|
+
one_cache:
|
|
1730
|
+
summary: Integration with one registered cache
|
|
1731
|
+
value:
|
|
1732
|
+
- _id: 68680d7111d1437fbcbce534
|
|
1733
|
+
_userId: 624cb0346309dc3a543733a2
|
|
1734
|
+
name: US State Name to State Code
|
|
1735
|
+
includeDataInTemplatesAndCloning: false
|
|
1736
|
+
size: 1887
|
|
1737
|
+
sizeInMB: <5 MB
|
|
1738
|
+
createdAt: '2026-03-24T19:51:01.266Z'
|
|
1739
|
+
lastModified: '2026-04-18T05:40:33.812Z'
|
|
1740
|
+
'204':
|
|
1741
|
+
description: No lookup caches are registered to the integration.
|
|
1742
|
+
'401':
|
|
1743
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
1744
|
+
'404':
|
|
1745
|
+
$ref: '#/components/responses/404-not-found'
|
|
1746
|
+
post:
|
|
1747
|
+
x-internal: false
|
|
1748
|
+
operationId: createLookupCacheOnIntegration
|
|
1749
|
+
tags:
|
|
1750
|
+
- Integrations
|
|
1751
|
+
summary: Create a lookup cache and register it
|
|
1752
|
+
description: |-
|
|
1753
|
+
Creates a lookup cache exactly as `POST /v1/lookupcaches` does and, in the same call, adds it to
|
|
1754
|
+
the integration's `_registeredLookupCacheIds` and an `aliases[]` entry whose `alias` is a slug of
|
|
1755
|
+
the cache name — the same side effect as the `register` operations. Populate the cache afterwards
|
|
1756
|
+
with `POST /v1/lookupcaches/{_id}/data`.
|
|
1757
|
+
parameters:
|
|
1758
|
+
- name: _id
|
|
1759
|
+
in: path
|
|
1760
|
+
required: true
|
|
1761
|
+
description: Integration id.
|
|
1762
|
+
schema:
|
|
1763
|
+
type: string
|
|
1764
|
+
format: objectId
|
|
1765
|
+
x-celigo-refModel: integrations
|
|
1766
|
+
examples:
|
|
1767
|
+
- 6842261335b64c0bcb308e4f
|
|
1768
|
+
requestBody:
|
|
1769
|
+
required: true
|
|
1770
|
+
content:
|
|
1771
|
+
application/json:
|
|
1772
|
+
schema:
|
|
1773
|
+
$ref: '#/components/schemas/Request-2'
|
|
1774
|
+
examples:
|
|
1775
|
+
default:
|
|
1776
|
+
value:
|
|
1777
|
+
name: Customer ID Cache
|
|
1778
|
+
responses:
|
|
1779
|
+
'201':
|
|
1780
|
+
description: Created lookup cache, already registered to the integration.
|
|
1781
|
+
content:
|
|
1782
|
+
application/json:
|
|
1783
|
+
schema:
|
|
1784
|
+
$ref: '#/components/schemas/LookupCache'
|
|
1785
|
+
examples:
|
|
1786
|
+
created:
|
|
1787
|
+
value:
|
|
1788
|
+
_id: 6ab1f6f37c4b4e699fe8c72c
|
|
1789
|
+
_userId: 624cb0346309dc3a543733a2
|
|
1790
|
+
name: Customer ID Cache
|
|
1791
|
+
includeDataInTemplatesAndCloning: false
|
|
1792
|
+
size: 0
|
|
1793
|
+
sizeInMB: 0 MB
|
|
1794
|
+
createdAt: '2026-09-22T03:33:07.337Z'
|
|
1795
|
+
lastModified: '2026-09-22T03:33:07.367Z'
|
|
1796
|
+
'401':
|
|
1797
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
1798
|
+
'404':
|
|
1799
|
+
$ref: '#/components/responses/404-not-found'
|
|
1554
1800
|
/v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register:
|
|
1555
1801
|
put:
|
|
1556
1802
|
x-internal: false
|
|
@@ -1704,29 +1950,352 @@ paths:
|
|
|
1704
1950
|
application/json:
|
|
1705
1951
|
schema:
|
|
1706
1952
|
type: array
|
|
1707
|
-
description: Lookup cache ids to register.
|
|
1953
|
+
description: Lookup cache ids to register.
|
|
1954
|
+
items:
|
|
1955
|
+
type: string
|
|
1956
|
+
format: objectId
|
|
1957
|
+
x-celigo-refModel: lookupcaches
|
|
1958
|
+
examples:
|
|
1959
|
+
default:
|
|
1960
|
+
value:
|
|
1961
|
+
- 68680d7111d1437fbcbce534
|
|
1962
|
+
- 68680d7111d1437fbcbce535
|
|
1963
|
+
responses:
|
|
1964
|
+
'204':
|
|
1965
|
+
description: Lookup caches registered successfully. No body returned.
|
|
1966
|
+
'400':
|
|
1967
|
+
description: An entry in the array is not a valid ObjectId.
|
|
1968
|
+
content:
|
|
1969
|
+
application/json:
|
|
1970
|
+
schema:
|
|
1971
|
+
$ref: '#/components/schemas/Error'
|
|
1972
|
+
'401':
|
|
1973
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
1974
|
+
'404':
|
|
1975
|
+
$ref: '#/components/responses/404-not-found'
|
|
1976
|
+
/v1/integrations/{_id}/topics:
|
|
1977
|
+
get:
|
|
1978
|
+
x-internal: false
|
|
1979
|
+
operationId: listIntegrationTopics
|
|
1980
|
+
tags:
|
|
1981
|
+
- Integrations
|
|
1982
|
+
summary: List topics registered to an integration
|
|
1983
|
+
description: |-
|
|
1984
|
+
Returns a bare array of full topic objects for every topic in the integration's
|
|
1985
|
+
`_registeredTopicIds`, sorted by `name`. Each element is the same shape as
|
|
1986
|
+
`GET /v1/topics/{_id}`. Rejects unknown integration ids with a 404. The `externalId` filter of
|
|
1987
|
+
`GET /v1/topics` is not applied here.
|
|
1988
|
+
parameters:
|
|
1989
|
+
- name: _id
|
|
1990
|
+
in: path
|
|
1991
|
+
required: true
|
|
1992
|
+
description: Integration id.
|
|
1993
|
+
schema:
|
|
1994
|
+
type: string
|
|
1995
|
+
format: objectId
|
|
1996
|
+
x-celigo-refModel: integrations
|
|
1997
|
+
examples:
|
|
1998
|
+
- 6842261335b64c0bcb308e4f
|
|
1999
|
+
- name: limit
|
|
2000
|
+
in: query
|
|
2001
|
+
required: false
|
|
2002
|
+
description: Maximum number of topics to return per page.
|
|
2003
|
+
schema:
|
|
2004
|
+
type: integer
|
|
2005
|
+
minimum: 1
|
|
2006
|
+
examples:
|
|
2007
|
+
- 100
|
|
2008
|
+
- $ref: '#/components/parameters/After'
|
|
2009
|
+
responses:
|
|
2010
|
+
'200':
|
|
2011
|
+
description: Array of topic objects.
|
|
2012
|
+
headers:
|
|
2013
|
+
Link:
|
|
2014
|
+
description: |-
|
|
2015
|
+
RFC 5988 pagination link. Includes `<...>; rel="next"` with an `after` cursor when more
|
|
2016
|
+
topics remain; absent on the final page.
|
|
2017
|
+
schema:
|
|
2018
|
+
type: string
|
|
2019
|
+
content:
|
|
2020
|
+
application/json:
|
|
2021
|
+
schema:
|
|
2022
|
+
type: array
|
|
2023
|
+
items:
|
|
2024
|
+
$ref: '#/components/schemas/Topic'
|
|
2025
|
+
examples:
|
|
2026
|
+
one_topic:
|
|
2027
|
+
summary: Integration with one registered topic
|
|
2028
|
+
value:
|
|
2029
|
+
- _id: 6aab2870265e1cf39fcbee4d
|
|
2030
|
+
_userId: 624cb0346309dc3a543733a2
|
|
2031
|
+
name: orders.created
|
|
2032
|
+
description: One event per order placed. Consumed by the fulfillment and finance flows.
|
|
2033
|
+
retentionMs: 604800000
|
|
2034
|
+
createdAt: '2026-09-16T23:38:24.578Z'
|
|
2035
|
+
lastModified: '2026-09-16T23:38:24.578Z'
|
|
2036
|
+
'204':
|
|
2037
|
+
description: No topics are registered to the integration.
|
|
2038
|
+
'401':
|
|
2039
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
2040
|
+
'404':
|
|
2041
|
+
$ref: '#/components/responses/404-not-found'
|
|
2042
|
+
post:
|
|
2043
|
+
x-internal: false
|
|
2044
|
+
operationId: createTopicOnIntegration
|
|
2045
|
+
tags:
|
|
2046
|
+
- Integrations
|
|
2047
|
+
summary: Create a topic and register it
|
|
2048
|
+
description: |-
|
|
2049
|
+
Creates a topic exactly as `POST /v1/topics` does and, in the same call, adds it to the
|
|
2050
|
+
integration's `_registeredTopicIds`. Use this when the topic is being built for one integration's
|
|
2051
|
+
flows; to share a topic across several integrations, create it with `POST /v1/topics` and
|
|
2052
|
+
register it on each with the `register` operations.
|
|
2053
|
+
parameters:
|
|
2054
|
+
- name: _id
|
|
2055
|
+
in: path
|
|
2056
|
+
required: true
|
|
2057
|
+
description: Integration id.
|
|
2058
|
+
schema:
|
|
2059
|
+
type: string
|
|
2060
|
+
format: objectId
|
|
2061
|
+
x-celigo-refModel: integrations
|
|
2062
|
+
examples:
|
|
2063
|
+
- 6842261335b64c0bcb308e4f
|
|
2064
|
+
requestBody:
|
|
2065
|
+
required: true
|
|
2066
|
+
content:
|
|
2067
|
+
application/json:
|
|
2068
|
+
schema:
|
|
2069
|
+
$ref: '#/components/schemas/Request-3'
|
|
2070
|
+
examples:
|
|
2071
|
+
default:
|
|
2072
|
+
value:
|
|
2073
|
+
name: orders.created
|
|
2074
|
+
description: One event per order placed. Consumed by the fulfillment and finance flows.
|
|
2075
|
+
retentionMs: 604800000
|
|
2076
|
+
responses:
|
|
2077
|
+
'201':
|
|
2078
|
+
description: Created topic, already registered to the integration.
|
|
2079
|
+
content:
|
|
2080
|
+
application/json:
|
|
2081
|
+
schema:
|
|
2082
|
+
$ref: '#/components/schemas/Topic'
|
|
2083
|
+
examples:
|
|
2084
|
+
created:
|
|
2085
|
+
value:
|
|
2086
|
+
_id: 6aab2870265e1cf39fcbee4d
|
|
2087
|
+
_userId: 624cb0346309dc3a543733a2
|
|
2088
|
+
name: orders.created
|
|
2089
|
+
description: One event per order placed. Consumed by the fulfillment and finance flows.
|
|
2090
|
+
retentionMs: 604800000
|
|
2091
|
+
createdAt: '2026-09-16T23:38:24.578Z'
|
|
2092
|
+
lastModified: '2026-09-16T23:38:24.578Z'
|
|
2093
|
+
'401':
|
|
2094
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
2095
|
+
'404':
|
|
2096
|
+
$ref: '#/components/responses/404-not-found'
|
|
2097
|
+
'422':
|
|
2098
|
+
description: The topic body failed validation — the same codes as `POST /v1/topics`.
|
|
2099
|
+
content:
|
|
2100
|
+
application/json:
|
|
2101
|
+
schema:
|
|
2102
|
+
$ref: '#/components/schemas/Error'
|
|
2103
|
+
examples:
|
|
2104
|
+
retention_too_short:
|
|
2105
|
+
value:
|
|
2106
|
+
errors:
|
|
2107
|
+
- field: retentionMs
|
|
2108
|
+
code: min
|
|
2109
|
+
message: Path `retentionMs` (3599999) is less than minimum allowed value (3600000).
|
|
2110
|
+
/v1/integrations/{_id}/topics/{_topicId}/register:
|
|
2111
|
+
put:
|
|
2112
|
+
x-internal: false
|
|
2113
|
+
operationId: registerTopicToIntegration
|
|
2114
|
+
tags:
|
|
2115
|
+
- Integrations
|
|
2116
|
+
summary: Register a topic to an integration (by path)
|
|
2117
|
+
description: |-
|
|
2118
|
+
Adds a single topic to the integration's `_registeredTopicIds` so flows in the integration can
|
|
2119
|
+
subscribe to or publish on it. No request body is needed; registering an already-registered topic
|
|
2120
|
+
succeeds without duplicating it. To unregister, use `DELETE` on the same path; to register several
|
|
2121
|
+
topics at once, use `PUT /v1/integrations/{_id}/topics/register`.
|
|
2122
|
+
|
|
2123
|
+
Registration also happens automatically when a flow in the integration is saved with a step
|
|
2124
|
+
bound to the topic. Unlike lookup caches, registering a topic adds no `aliases[]` entry.
|
|
2125
|
+
parameters:
|
|
2126
|
+
- name: _id
|
|
2127
|
+
in: path
|
|
2128
|
+
required: true
|
|
2129
|
+
description: Integration id.
|
|
2130
|
+
schema:
|
|
2131
|
+
type: string
|
|
2132
|
+
format: objectId
|
|
2133
|
+
x-celigo-refModel: integrations
|
|
2134
|
+
examples:
|
|
2135
|
+
- 6842261335b64c0bcb308e4f
|
|
2136
|
+
- name: _topicId
|
|
2137
|
+
in: path
|
|
2138
|
+
required: true
|
|
2139
|
+
description: Topic id to register.
|
|
2140
|
+
schema:
|
|
2141
|
+
type: string
|
|
2142
|
+
format: objectId
|
|
2143
|
+
x-celigo-refModel: topics
|
|
2144
|
+
examples:
|
|
2145
|
+
- 6aab2870265e1cf39fcbee4d
|
|
2146
|
+
responses:
|
|
2147
|
+
'204':
|
|
2148
|
+
description: Topic registered successfully. No body returned.
|
|
2149
|
+
'401':
|
|
2150
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
2151
|
+
'404':
|
|
2152
|
+
description: The integration does not exist, or the topic does not exist in this account.
|
|
2153
|
+
content:
|
|
2154
|
+
application/json:
|
|
2155
|
+
schema:
|
|
2156
|
+
$ref: '#/components/schemas/Error'
|
|
2157
|
+
examples:
|
|
2158
|
+
topic_not_found:
|
|
2159
|
+
value:
|
|
2160
|
+
errors:
|
|
2161
|
+
- code: not_found
|
|
2162
|
+
message: 'The topics with following _id''s: 6aab2870265e1cf39fcbee4d don''t exist.'
|
|
2163
|
+
delete:
|
|
2164
|
+
x-internal: false
|
|
2165
|
+
operationId: unregisterTopicFromIntegration
|
|
2166
|
+
tags:
|
|
2167
|
+
- Integrations
|
|
2168
|
+
summary: Unregister a topic from an integration
|
|
2169
|
+
description: |-
|
|
2170
|
+
Removes a topic's registration from the integration. This does not delete the topic — it only
|
|
2171
|
+
removes it from the integration's `_registeredTopicIds`. Fails when the topic is not registered
|
|
2172
|
+
on the integration, or while any flow step in the integration (an export or import with
|
|
2173
|
+
`topic._topicId` set) still uses it. Repoint or delete those steps first, then retry.
|
|
2174
|
+
x-celigo-ai-guidance:
|
|
2175
|
+
- |-
|
|
2176
|
+
Before calling, check `GET /v1/topics/{_topicId}/dependencies` for `flows` in this integration
|
|
2177
|
+
— while any exist the platform returns 400 `not_allowed` "The topic is being actively used by a
|
|
2178
|
+
step in this integration…".
|
|
2179
|
+
parameters:
|
|
2180
|
+
- name: _id
|
|
2181
|
+
in: path
|
|
2182
|
+
required: true
|
|
2183
|
+
description: Integration id.
|
|
2184
|
+
schema:
|
|
2185
|
+
type: string
|
|
2186
|
+
format: objectId
|
|
2187
|
+
x-celigo-refModel: integrations
|
|
2188
|
+
examples:
|
|
2189
|
+
- 6842261335b64c0bcb308e4f
|
|
2190
|
+
- name: _topicId
|
|
2191
|
+
in: path
|
|
2192
|
+
required: true
|
|
2193
|
+
description: Topic id to unregister.
|
|
2194
|
+
schema:
|
|
2195
|
+
type: string
|
|
2196
|
+
format: objectId
|
|
2197
|
+
x-celigo-refModel: topics
|
|
2198
|
+
examples:
|
|
2199
|
+
- 6aab2870265e1cf39fcbee4d
|
|
2200
|
+
responses:
|
|
2201
|
+
'204':
|
|
2202
|
+
description: Topic unregistered successfully. No body returned.
|
|
2203
|
+
'400':
|
|
2204
|
+
description: |-
|
|
2205
|
+
The topic is not registered on this integration ("The topic which you are trying to
|
|
2206
|
+
deregister is not registered on the integration."), or a flow step in the integration still
|
|
2207
|
+
uses it ("The topic is being actively used by a step in this integration…"). Error code:
|
|
2208
|
+
`not_allowed` for both.
|
|
2209
|
+
content:
|
|
2210
|
+
application/json:
|
|
2211
|
+
schema:
|
|
2212
|
+
$ref: '#/components/schemas/Error'
|
|
2213
|
+
examples:
|
|
2214
|
+
in_use:
|
|
2215
|
+
value:
|
|
2216
|
+
errors:
|
|
2217
|
+
- code: not_allowed
|
|
2218
|
+
message: The topic is being actively used by a step in this integration. Please remove the topic reference from all steps before deregistering.
|
|
2219
|
+
not_registered:
|
|
2220
|
+
value:
|
|
2221
|
+
errors:
|
|
2222
|
+
- code: not_allowed
|
|
2223
|
+
message: The topic which you are trying to deregister is not registered on the integration.
|
|
2224
|
+
'401':
|
|
2225
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
2226
|
+
'404':
|
|
2227
|
+
$ref: '#/components/responses/404-not-found'
|
|
2228
|
+
/v1/integrations/{_id}/topics/register:
|
|
2229
|
+
put:
|
|
2230
|
+
x-internal: false
|
|
2231
|
+
operationId: registerTopicsToIntegration
|
|
2232
|
+
tags:
|
|
2233
|
+
- Integrations
|
|
2234
|
+
summary: Register topics to an integration (by body)
|
|
2235
|
+
description: |-
|
|
2236
|
+
Adds one or more topics to the integration's `_registeredTopicIds`. The request body is a bare
|
|
2237
|
+
JSON array of topic ids; duplicates and already-registered ids are collapsed, and an empty array
|
|
2238
|
+
is accepted as a no-op. Every id must name a topic in this account or nothing is registered.
|
|
2239
|
+
Alternatively, use `PUT /v1/integrations/{_id}/topics/{_topicId}/register` to register a single
|
|
2240
|
+
topic by path parameter.
|
|
2241
|
+
parameters:
|
|
2242
|
+
- name: _id
|
|
2243
|
+
in: path
|
|
2244
|
+
required: true
|
|
2245
|
+
description: Integration id.
|
|
2246
|
+
schema:
|
|
2247
|
+
type: string
|
|
2248
|
+
format: objectId
|
|
2249
|
+
x-celigo-refModel: integrations
|
|
2250
|
+
examples:
|
|
2251
|
+
- 6842261335b64c0bcb308e4f
|
|
2252
|
+
requestBody:
|
|
2253
|
+
required: true
|
|
2254
|
+
content:
|
|
2255
|
+
application/json:
|
|
2256
|
+
schema:
|
|
2257
|
+
type: array
|
|
2258
|
+
description: Topic ids to register.
|
|
1708
2259
|
items:
|
|
1709
2260
|
type: string
|
|
1710
2261
|
format: objectId
|
|
1711
|
-
x-celigo-refModel:
|
|
2262
|
+
x-celigo-refModel: topics
|
|
1712
2263
|
examples:
|
|
1713
2264
|
default:
|
|
1714
2265
|
value:
|
|
1715
|
-
-
|
|
1716
|
-
-
|
|
2266
|
+
- 6aab2870265e1cf39fcbee4d
|
|
2267
|
+
- 6aab2870bb44c84f7b77e9f7
|
|
1717
2268
|
responses:
|
|
1718
2269
|
'204':
|
|
1719
|
-
description:
|
|
2270
|
+
description: Topics registered successfully. No body returned.
|
|
1720
2271
|
'400':
|
|
1721
|
-
description:
|
|
2272
|
+
description: |-
|
|
2273
|
+
The body is not a JSON array ("Maximum batch size is …", code `batch_size_exceeded`), or an
|
|
2274
|
+
entry is not a valid ObjectId ("Please provide a valid _topicId.", code `invalid_ref`).
|
|
1722
2275
|
content:
|
|
1723
2276
|
application/json:
|
|
1724
2277
|
schema:
|
|
1725
2278
|
$ref: '#/components/schemas/Error'
|
|
2279
|
+
examples:
|
|
2280
|
+
bad_id:
|
|
2281
|
+
value:
|
|
2282
|
+
errors:
|
|
2283
|
+
- code: invalid_ref
|
|
2284
|
+
message: Please provide a valid _topicId.
|
|
1726
2285
|
'401':
|
|
1727
2286
|
$ref: '#/components/responses/401-unauthorized'
|
|
1728
2287
|
'404':
|
|
1729
|
-
|
|
2288
|
+
description: The integration does not exist, or one of the topics does not exist in this account.
|
|
2289
|
+
content:
|
|
2290
|
+
application/json:
|
|
2291
|
+
schema:
|
|
2292
|
+
$ref: '#/components/schemas/Error'
|
|
2293
|
+
examples:
|
|
2294
|
+
topic_not_found:
|
|
2295
|
+
value:
|
|
2296
|
+
errors:
|
|
2297
|
+
- code: not_found
|
|
2298
|
+
message: 'The topics with following _id''s: 6aab2870bb44c84f7b77e9f7 don''t exist.'
|
|
1730
2299
|
/v1/integrations/{_id}/tree/metadata:
|
|
1731
2300
|
get:
|
|
1732
2301
|
x-internal: false
|
|
@@ -2161,6 +2730,15 @@ components:
|
|
|
2161
2730
|
schema:
|
|
2162
2731
|
type: string
|
|
2163
2732
|
example: createdAt,lastModified
|
|
2733
|
+
After:
|
|
2734
|
+
name: after
|
|
2735
|
+
in: query
|
|
2736
|
+
required: false
|
|
2737
|
+
description: |-
|
|
2738
|
+
Opaque cursor for forward pagination. Pass the value from the `Link`
|
|
2739
|
+
response header (`rel="next"`) to fetch the next page.
|
|
2740
|
+
schema:
|
|
2741
|
+
type: string
|
|
2164
2742
|
schemas:
|
|
2165
2743
|
Settings:
|
|
2166
2744
|
type: object
|
|
@@ -2707,6 +3285,8 @@ components:
|
|
|
2707
3285
|
- prepareFormData
|
|
2708
3286
|
_scriptId:
|
|
2709
3287
|
type: string
|
|
3288
|
+
format: objectId
|
|
3289
|
+
x-celigo-refModel: scripts
|
|
2710
3290
|
description: |
|
|
2711
3291
|
Reference to a predefined script resource containing the initialization function.
|
|
2712
3292
|
|
|
@@ -2775,6 +3355,8 @@ components:
|
|
|
2775
3355
|
- prepareResourceForSave
|
|
2776
3356
|
_scriptId:
|
|
2777
3357
|
type: string
|
|
3358
|
+
format: objectId
|
|
3359
|
+
x-celigo-refModel: scripts
|
|
2778
3360
|
description: |
|
|
2779
3361
|
Reference to a predefined script resource containing the preSave function.
|
|
2780
3362
|
|
|
@@ -2840,16 +3422,18 @@ components:
|
|
|
2840
3422
|
examples:
|
|
2841
3423
|
- 5c1a7b8d4f2e6a0011556677
|
|
2842
3424
|
description: |-
|
|
2843
|
-
|
|
3425
|
+
Marketplace template this integration was installed from. Absent on integrations built from scratch and on
|
|
3426
|
+
clones. It does not make the integration an Integration App — `_connectorId` does.
|
|
2844
3427
|
|
|
2845
3428
|
Omit unless you are creating/updating an integration from a template.
|
|
2846
3429
|
install:
|
|
2847
3430
|
type: array
|
|
2848
3431
|
description: |-
|
|
2849
|
-
Install "cards"
|
|
3432
|
+
Install "cards" an Integration App installer shows during installation — UI workflow metadata, not runtime
|
|
3433
|
+
configuration. The platform also writes it (empty) on a plain custom integration created by the UI's
|
|
3434
|
+
clone-and-install, so its presence does not indicate an Integration App.
|
|
2850
3435
|
|
|
2851
|
-
|
|
2852
|
-
omit this field.
|
|
3436
|
+
Unless you are explicitly modeling an install experience, omit this field.
|
|
2853
3437
|
items:
|
|
2854
3438
|
type: object
|
|
2855
3439
|
additionalProperties: true
|
|
@@ -2924,17 +3508,19 @@ components:
|
|
|
2924
3508
|
mode:
|
|
2925
3509
|
type: string
|
|
2926
3510
|
description: |-
|
|
2927
|
-
|
|
3511
|
+
Where the integration stands in its install or uninstall wizard. The platform writes it on a plain custom
|
|
3512
|
+
integration created by the UI's clone-and-install as much as on an Integration App, and leaves it set after
|
|
3513
|
+
the wizard completes, so it does not indicate an Integration App (`_connectorId` does).
|
|
2928
3514
|
|
|
2929
|
-
|
|
3515
|
+
Omit when creating an integration directly.
|
|
2930
3516
|
enum:
|
|
2931
3517
|
- install
|
|
2932
3518
|
- settings
|
|
2933
3519
|
- uninstall
|
|
2934
3520
|
x-enumDescriptions:
|
|
2935
|
-
install:
|
|
2936
|
-
settings:
|
|
2937
|
-
uninstall: The integration is being uninstalled
|
|
3521
|
+
install: Install steps are still pending and the UI shows the setup wizard
|
|
3522
|
+
settings: Setup is complete and the integration is in normal use
|
|
3523
|
+
uninstall: The integration is being uninstalled
|
|
2938
3524
|
examples:
|
|
2939
3525
|
- install
|
|
2940
3526
|
settings:
|
|
@@ -2953,9 +3539,21 @@ components:
|
|
|
2953
3539
|
examples:
|
|
2954
3540
|
- 1.2.0
|
|
2955
3541
|
description: |-
|
|
2956
|
-
Integration App
|
|
2957
|
-
|
|
2958
|
-
|
|
3542
|
+
Version of the Integration App (or template) currently installed in this integration.
|
|
3543
|
+
For Integration Apps the connector's update workflow sets it; omit unless you are
|
|
3544
|
+
explicitly controlling versions.
|
|
3545
|
+
x-celigo-ai-guidance:
|
|
3546
|
+
- |-
|
|
3547
|
+
This is the installed version only. No API field carries an Integration App's newest
|
|
3548
|
+
available version (the connector record has none), so whether a newer release exists
|
|
3549
|
+
cannot be read from the platform — say so rather than inferring it from release notes,
|
|
3550
|
+
which are labeled by their own scheme, not by this value.
|
|
3551
|
+
- |-
|
|
3552
|
+
To date an Integration App update, read the integration's audit log
|
|
3553
|
+
(`GET /v1/integrations/{_id}/audit?source=connector`) for `version` field changes —
|
|
3554
|
+
one entry per version step, and an update run usually writes several in a row.
|
|
3555
|
+
`lastModified` moves on any write and `updateInProgress` can flip without a version
|
|
3556
|
+
change, so neither dates an update.
|
|
2959
3557
|
tag:
|
|
2960
3558
|
type:
|
|
2961
3559
|
- string
|
|
@@ -2973,6 +3571,9 @@ components:
|
|
|
2973
3571
|
API, but normally managed by the platform's update workflow.
|
|
2974
3572
|
x-celigo-ai-guidance:
|
|
2975
3573
|
- Typically system-managed; omit unless a workflow explicitly requires setting it.
|
|
3574
|
+
- |-
|
|
3575
|
+
An update run can set and clear it without changing `version`; its audit entries alone
|
|
3576
|
+
do not mean a new release was installed — the `version` changes do.
|
|
2976
3577
|
celigoAgentAutoRunMode:
|
|
2977
3578
|
type: boolean
|
|
2978
3579
|
examples:
|
|
@@ -2991,6 +3592,10 @@ components:
|
|
|
2991
3592
|
Timestamp indicating when the most recent install/update workflow was resolved/completed.
|
|
2992
3593
|
|
|
2993
3594
|
Typically system-managed; omit in normal create/update payloads.
|
|
3595
|
+
x-celigo-ai-guidance:
|
|
3596
|
+
- |-
|
|
3597
|
+
May be absent on an installed Integration App even after its update workflow has run —
|
|
3598
|
+
date an update from the audit log's `version` changes, not from this field.
|
|
2994
3599
|
settingsForm:
|
|
2995
3600
|
description: Settings form definition for the integration.
|
|
2996
3601
|
allOf:
|
|
@@ -3037,9 +3642,12 @@ components:
|
|
|
3037
3642
|
installSteps:
|
|
3038
3643
|
type: array
|
|
3039
3644
|
description: |-
|
|
3040
|
-
Ordered
|
|
3645
|
+
Ordered steps of the install wizard that created this integration, each marked completed as it finishes.
|
|
3646
|
+
Written by the UI's clone-and-install of a plain custom integration (a `template_zip` step with `isClone`
|
|
3647
|
+
true) as well as by Integration App installers, and kept after completion — so a populated list does not
|
|
3648
|
+
indicate an Integration App.
|
|
3041
3649
|
|
|
3042
|
-
|
|
3650
|
+
Omit unless you are building an installer.
|
|
3043
3651
|
items:
|
|
3044
3652
|
type: object
|
|
3045
3653
|
additionalProperties: true
|
|
@@ -3455,7 +4063,10 @@ components:
|
|
|
3455
4063
|
description: |-
|
|
3456
4064
|
UI grouping configuration that groups an integration's flows into named
|
|
3457
4065
|
sections. Works on ANY integration — this is NOT an Integration-App-only
|
|
3458
|
-
feature; a plain integration can define flow groupings too.
|
|
4066
|
+
feature; a plain integration can define flow groupings too. Create groupings
|
|
4067
|
+
here, then assign flows to them via `PUT /v1/flows/updateFlowGrouping`. A
|
|
4068
|
+
grouping that still has member flows survives being removed from this array —
|
|
4069
|
+
ungroup its flows first.
|
|
3459
4070
|
|
|
3460
4071
|
Omit unless you are explicitly configuring flow grouping behavior.
|
|
3461
4072
|
x-celigo-ai-guidance:
|
|
@@ -3463,6 +4074,17 @@ components:
|
|
|
3463
4074
|
Set this ONLY when the user explicitly asks to group flows into named sections (e.g.
|
|
3464
4075
|
"create the integration with flow groups Order Intake and Fulfillment").
|
|
3465
4076
|
Otherwise omit it — do not synthesize groupings the user did not ask for.
|
|
4077
|
+
- |-
|
|
4078
|
+
`Unassigned` is a reserved name (422 `invalid_flowgrouping_name`) and names and `_id`s
|
|
4079
|
+
must be unique within the integration (422 `duplicate_field`) — on POST, PUT and PATCH
|
|
4080
|
+
alike.
|
|
4081
|
+
- |-
|
|
4082
|
+
Removing a grouping that still has member flows returns success but leaves the
|
|
4083
|
+
grouping in place; move those flows with `PUT /v1/flows/updateFlowGrouping` first.
|
|
4084
|
+
- |-
|
|
4085
|
+
`POST` and `PUT` answer with the saved integration, so a new grouping's `_id` is
|
|
4086
|
+
in the response; `PATCH` answers `204` with no body, so after a patch the `_id`
|
|
4087
|
+
comes from a follow-up `GET`.
|
|
3466
4088
|
items:
|
|
3467
4089
|
type: object
|
|
3468
4090
|
additionalProperties: true
|
|
@@ -3512,7 +4134,19 @@ components:
|
|
|
3512
4134
|
|
|
3513
4135
|
Used to group APIs into named sections with their own settings/settingsForm.
|
|
3514
4136
|
Works identically to `flowGroupings` but for API resources. Create groupings here,
|
|
3515
|
-
then assign APIs to them via `PUT /v1/apis/updateApiGrouping`.
|
|
4137
|
+
then assign APIs to them via `PUT /v1/apis/updateApiGrouping`. A grouping that still
|
|
4138
|
+
has member APIs survives being removed from this array — ungroup its APIs first.
|
|
4139
|
+
x-celigo-ai-guidance:
|
|
4140
|
+
- |-
|
|
4141
|
+
`Unassigned` is a reserved name (422 `invalid_apigrouping_name`) and names must be
|
|
4142
|
+
unique within the integration (422 `duplicate_field`).
|
|
4143
|
+
- |-
|
|
4144
|
+
Removing a grouping that still has member APIs returns success but leaves the
|
|
4145
|
+
grouping in place; move those APIs with `PUT /v1/apis/updateApiGrouping` first.
|
|
4146
|
+
- |-
|
|
4147
|
+
`POST` and `PUT` answer with the saved integration, so a new grouping's `_id` is
|
|
4148
|
+
in the response; `PATCH` answers `204` with no body, so after a patch the `_id`
|
|
4149
|
+
comes from a follow-up `GET`.
|
|
3516
4150
|
items:
|
|
3517
4151
|
type: object
|
|
3518
4152
|
additionalProperties: true
|
|
@@ -3593,9 +4227,10 @@ components:
|
|
|
3593
4227
|
syncs:
|
|
3594
4228
|
type: boolean
|
|
3595
4229
|
description: |-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
4230
|
+
When true, the integration is a container for Celigo Sync resources — set it on
|
|
4231
|
+
`POST /v1/integrations` before creating syncs in it (`POST /v1/syncs` into an
|
|
4232
|
+
integration without it fails with `422 integration_not_for_sync`). Fixed at creation:
|
|
4233
|
+
`PUT /v1/integrations/{_id}` ignores the field in both directions.
|
|
3599
4234
|
aliases:
|
|
3600
4235
|
type: array
|
|
3601
4236
|
description: Named aliases that map to specific resources within the integration.
|
|
@@ -3689,6 +4324,14 @@ components:
|
|
|
3689
4324
|
description: Timestamp when the resource was last updated. Changes whenever any property is modified.
|
|
3690
4325
|
x-celigo-ai-guidance:
|
|
3691
4326
|
- Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
|
|
4327
|
+
- |-
|
|
4328
|
+
Records that something was written, not what — a settings edit, a flag flip, or a
|
|
4329
|
+
platform workflow all move it. What changed and when is in the audit log: the
|
|
4330
|
+
per-resource route `GET /v1/{resourceType}/{_id}/audit` for the types its
|
|
4331
|
+
`resourceType` enum lists, or the account-wide
|
|
4332
|
+
`GET /v1/audit?resourceType=<singular>&_resourceId={_id}` for the further types that
|
|
4333
|
+
endpoint's enum accepts (users, environments, notifications among them). A type absent
|
|
4334
|
+
from both enums — jobs, connectors, templates — has only this timestamp.
|
|
3692
4335
|
examples:
|
|
3693
4336
|
- '2023-04-15T14:30:15Z'
|
|
3694
4337
|
deletedAt:
|
|
@@ -3747,6 +4390,22 @@ components:
|
|
|
3747
4390
|
type: string
|
|
3748
4391
|
format: objectId
|
|
3749
4392
|
x-celigo-refModel: lookupcaches
|
|
4393
|
+
_registeredTopicIds:
|
|
4394
|
+
type: array
|
|
4395
|
+
readOnly: true
|
|
4396
|
+
description: |-
|
|
4397
|
+
Topics registered to this integration, so its flows can subscribe to or publish on them.
|
|
4398
|
+
Maintained by the platform: added through the integration's topic `register` operations,
|
|
4399
|
+
`POST /v1/topics` with `__integrationIds`, or automatically when a flow in the integration
|
|
4400
|
+
is saved with a step bound to a topic; removed by the `DELETE …/register` operation or when
|
|
4401
|
+
the topic is deleted. Client-sent values are ignored (PUT-verified). Absent on integrations
|
|
4402
|
+
that have never had a topic registered.
|
|
4403
|
+
items:
|
|
4404
|
+
type: string
|
|
4405
|
+
format: objectId
|
|
4406
|
+
x-celigo-refModel: topics
|
|
4407
|
+
examples:
|
|
4408
|
+
- - 6aab2870265e1cf39fcbee4d
|
|
3750
4409
|
Request:
|
|
3751
4410
|
type: object
|
|
3752
4411
|
description: Fields that can be sent when creating or updating an integration.
|
|
@@ -3833,11 +4492,11 @@ components:
|
|
|
3833
4492
|
type: object
|
|
3834
4493
|
description: Request body for cloning an integration.
|
|
3835
4494
|
required:
|
|
3836
|
-
-
|
|
4495
|
+
- name
|
|
3837
4496
|
properties:
|
|
3838
4497
|
name:
|
|
3839
4498
|
type: string
|
|
3840
|
-
description: Name for the cloned integration.
|
|
4499
|
+
description: Name for the cloned integration.
|
|
3841
4500
|
examples:
|
|
3842
4501
|
- Clone - Integration 1
|
|
3843
4502
|
description:
|
|
@@ -3845,15 +4504,14 @@ components:
|
|
|
3845
4504
|
description: Description for the cloned integration.
|
|
3846
4505
|
examples:
|
|
3847
4506
|
- Cloned copy of the Shopify to NetSuite orders integration.
|
|
3848
|
-
|
|
4507
|
+
envId:
|
|
3849
4508
|
type: string
|
|
3850
4509
|
format: objectId
|
|
3851
4510
|
x-celigo-refModel: environments
|
|
3852
4511
|
description: |
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
Omit to clone within the same environment.
|
|
4512
|
+
Environment to create the clone in, taken from GET /v1/environments. Omit to
|
|
4513
|
+
clone within the current environment. The name has no leading underscore:
|
|
4514
|
+
`_envId` is ignored, and the clone is created in the current environment.
|
|
3857
4515
|
examples:
|
|
3858
4516
|
- 67b123456789abcdef012345
|
|
3859
4517
|
connectionMap:
|
|
@@ -3862,6 +4520,9 @@ components:
|
|
|
3862
4520
|
Mapping of original connection _ids to replacement connection _ids.
|
|
3863
4521
|
Keys are source connection _ids on the original integration; values
|
|
3864
4522
|
are target connection _ids in the destination environment.
|
|
4523
|
+
Required when the source integration has registered connections — omitting it or
|
|
4524
|
+
sending an empty map fails with 400 `invalid_connectionMap`. Map a connection to
|
|
4525
|
+
itself to reuse it in the clone; omit the map when the source has none.
|
|
3865
4526
|
additionalProperties:
|
|
3866
4527
|
type: string
|
|
3867
4528
|
example:
|
|
@@ -3999,7 +4660,7 @@ components:
|
|
|
3999
4660
|
x-enumDescriptions:
|
|
4000
4661
|
inprogress: The revision is currently being prepared and can be diffed, applied, or canceled.
|
|
4001
4662
|
completed: The revision has been finalized and applied successfully.
|
|
4002
|
-
failed: The revision
|
|
4663
|
+
failed: The apply step rejected the revision; the recorded errors are returned by `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`.
|
|
4003
4664
|
canceled: The revision was aborted before being applied.
|
|
4004
4665
|
description:
|
|
4005
4666
|
type: string
|
|
@@ -4025,6 +4686,14 @@ components:
|
|
|
4025
4686
|
`revert` revisions.
|
|
4026
4687
|
examples:
|
|
4027
4688
|
- 7d9e2b4a1c3f5068ab82d4e0fc16937255ab8c40
|
|
4689
|
+
errorFileKey:
|
|
4690
|
+
type: string
|
|
4691
|
+
readOnly: true
|
|
4692
|
+
description: |-
|
|
4693
|
+
Storage key of the error file written when the apply step fails. Present only on `failed`
|
|
4694
|
+
revisions; the file's records are read through `GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`.
|
|
4695
|
+
examples:
|
|
4696
|
+
- a574f7e1294645f68e141ac6ab4eed92
|
|
4028
4697
|
_revertToRevisionId:
|
|
4029
4698
|
type: string
|
|
4030
4699
|
format: objectId
|
|
@@ -4099,6 +4768,43 @@ components:
|
|
|
4099
4768
|
before/after blocks. Treated as an opaque envelope here; specific field layout is not guaranteed
|
|
4100
4769
|
stable across platform versions.
|
|
4101
4770
|
additionalProperties: true
|
|
4771
|
+
RevisionError:
|
|
4772
|
+
type: object
|
|
4773
|
+
description: One error recorded while a revision was being applied.
|
|
4774
|
+
required:
|
|
4775
|
+
- code
|
|
4776
|
+
- message
|
|
4777
|
+
properties:
|
|
4778
|
+
_id:
|
|
4779
|
+
type: string
|
|
4780
|
+
format: objectId
|
|
4781
|
+
description: Error record id; the Revisions tab uses it to open the record's detail view.
|
|
4782
|
+
examples:
|
|
4783
|
+
- 6aaceb3c8b19ac878dd7cd41
|
|
4784
|
+
code:
|
|
4785
|
+
type: string
|
|
4786
|
+
description: Error class assigned by the apply step, such as `LifeCycleError` for change-set consistency failures.
|
|
4787
|
+
examples:
|
|
4788
|
+
- LifeCycleError
|
|
4789
|
+
message:
|
|
4790
|
+
type: string
|
|
4791
|
+
description: |-
|
|
4792
|
+
Human-readable cause. Resource references inside it use the change set's own ids, so a
|
|
4793
|
+
`<id>.deleted` suffix identifies an entry of the revision, not the state of the resource in
|
|
4794
|
+
the account.
|
|
4795
|
+
examples:
|
|
4796
|
+
- integration - 6a90467b117405485e64787e references a deleted resource:lookupcache - 6aa912fd3ec91536bee07e41.deleted.
|
|
4797
|
+
createdAt:
|
|
4798
|
+
type: string
|
|
4799
|
+
format: date-time
|
|
4800
|
+
description: When the error was recorded.
|
|
4801
|
+
examples:
|
|
4802
|
+
- '2026-09-18T07:41:37.675Z'
|
|
4803
|
+
RevisionErrorsResponse:
|
|
4804
|
+
type: array
|
|
4805
|
+
description: Error records for one revision, oldest first.
|
|
4806
|
+
items:
|
|
4807
|
+
$ref: '#/components/schemas/RevisionError'
|
|
4102
4808
|
IntegrationErrorsResponse:
|
|
4103
4809
|
type: array
|
|
4104
4810
|
description: |-
|
|
@@ -4206,6 +4912,362 @@ components:
|
|
|
4206
4912
|
- 67b123456789abcdef012345
|
|
4207
4913
|
description: Environment id the integration belongs to.
|
|
4208
4914
|
additionalProperties: true
|
|
4915
|
+
LookupCacheBase:
|
|
4916
|
+
type: object
|
|
4917
|
+
description: Writable fields shared by the request and response schemas.
|
|
4918
|
+
properties:
|
|
4919
|
+
name:
|
|
4920
|
+
type: string
|
|
4921
|
+
maxLength: 200
|
|
4922
|
+
description: Display name.
|
|
4923
|
+
examples:
|
|
4924
|
+
- Customer ID Cache
|
|
4925
|
+
- Product SKU Lookup
|
|
4926
|
+
description:
|
|
4927
|
+
type: string
|
|
4928
|
+
maxLength: 5120
|
|
4929
|
+
description: Purpose or contents of the cache.
|
|
4930
|
+
examples:
|
|
4931
|
+
- Maps external customer IDs to internal Salesforce IDs for deduplication
|
|
4932
|
+
includeDataInTemplatesAndCloning:
|
|
4933
|
+
type: boolean
|
|
4934
|
+
default: false
|
|
4935
|
+
description: |-
|
|
4936
|
+
Whether to include the cached key-value data when this cache is
|
|
4937
|
+
used in templates or cloned. When `false` (default), only
|
|
4938
|
+
metadata transfers. Set to `true` for static reference tables.
|
|
4939
|
+
examples:
|
|
4940
|
+
- false
|
|
4941
|
+
- true
|
|
4942
|
+
x-celigo-ai-guidance:
|
|
4943
|
+
- |-
|
|
4944
|
+
When false (default), only the cache metadata is included — the actual
|
|
4945
|
+
key-value data is not transferred. Set to true if the cached data is
|
|
4946
|
+
part of the integration's configuration (e.g., static reference tables).
|
|
4947
|
+
externalId:
|
|
4948
|
+
type: string
|
|
4949
|
+
description: Caller-supplied identifier for cross-system correlation.
|
|
4950
|
+
examples:
|
|
4951
|
+
- ext-cache-12345
|
|
4952
|
+
LookupCache:
|
|
4953
|
+
type: object
|
|
4954
|
+
required:
|
|
4955
|
+
- _id
|
|
4956
|
+
- _userId
|
|
4957
|
+
- createdAt
|
|
4958
|
+
- lastModified
|
|
4959
|
+
description: Lookup cache object as returned by the API.
|
|
4960
|
+
allOf:
|
|
4961
|
+
- $ref: '#/components/schemas/LookupCacheBase'
|
|
4962
|
+
- $ref: '#/components/schemas/ResourceResponse'
|
|
4963
|
+
- type: object
|
|
4964
|
+
properties:
|
|
4965
|
+
_userId:
|
|
4966
|
+
type: string
|
|
4967
|
+
format: objectId
|
|
4968
|
+
readOnly: true
|
|
4969
|
+
x-celigo-refModel: users
|
|
4970
|
+
description: User who owns this lookup cache.
|
|
4971
|
+
examples:
|
|
4972
|
+
- 624cb0346309dc3a543733a2
|
|
4973
|
+
_templateId:
|
|
4974
|
+
type: string
|
|
4975
|
+
format: objectId
|
|
4976
|
+
readOnly: true
|
|
4977
|
+
x-celigo-refModel: templates
|
|
4978
|
+
description: Template this lookup cache was installed from, when it originated from a template.
|
|
4979
|
+
examples:
|
|
4980
|
+
- 6a27a36f9cea1a85192e72cd
|
|
4981
|
+
_sourceId:
|
|
4982
|
+
type: string
|
|
4983
|
+
format: objectId
|
|
4984
|
+
readOnly: true
|
|
4985
|
+
description: Origin resource ID when this cache was created by cloning or installing a template.
|
|
4986
|
+
examples:
|
|
4987
|
+
- 5f8d43a1b9e5a80011a35f2c
|
|
4988
|
+
size:
|
|
4989
|
+
type: integer
|
|
4990
|
+
minimum: 0
|
|
4991
|
+
readOnly: true
|
|
4992
|
+
description: Current size of the cached data in bytes. Maximum 50 MB per cache; 1 GB aggregate per environment.
|
|
4993
|
+
examples:
|
|
4994
|
+
- 0
|
|
4995
|
+
- 1887
|
|
4996
|
+
- 5242880
|
|
4997
|
+
sizeInMB:
|
|
4998
|
+
type: string
|
|
4999
|
+
readOnly: true
|
|
5000
|
+
description: |-
|
|
5001
|
+
Human-readable size rounded up to the nearest 5 MB increment.
|
|
5002
|
+
`"0 MB"` for empty caches, `"<5 MB"` through `"<50 MB"` for
|
|
5003
|
+
non-empty caches, `"50 MB"` at the per-cache cap.
|
|
5004
|
+
examples:
|
|
5005
|
+
- 0 MB
|
|
5006
|
+
- <5 MB
|
|
5007
|
+
- <25 MB
|
|
5008
|
+
- 50 MB
|
|
5009
|
+
x-celigo-ai-guidance:
|
|
5010
|
+
- |-
|
|
5011
|
+
Human-readable representation of the cache size, rounded up to
|
|
5012
|
+
the nearest 5 MB increment. Returns "0 MB" for empty caches,
|
|
5013
|
+
"<N MB" for caches under 50 MB, and "50 MB" for caches at or
|
|
5014
|
+
over the limit.
|
|
5015
|
+
draft:
|
|
5016
|
+
type: boolean
|
|
5017
|
+
readOnly: true
|
|
5018
|
+
description: When true, this cache was created as a draft by the AI-assisted builder and has not yet been confirmed.
|
|
5019
|
+
examples:
|
|
5020
|
+
- true
|
|
5021
|
+
draftExpiresAt:
|
|
5022
|
+
type: string
|
|
5023
|
+
format: date-time
|
|
5024
|
+
readOnly: true
|
|
5025
|
+
description: When the draft cache expires and will be automatically deleted. Only present when `draft` is `true`.
|
|
5026
|
+
examples:
|
|
5027
|
+
- '2026-05-08T17:29:30.726Z'
|
|
5028
|
+
Request-2:
|
|
5029
|
+
type: object
|
|
5030
|
+
description: Writable fields for creating or updating a lookup cache.
|
|
5031
|
+
allOf:
|
|
5032
|
+
- $ref: '#/components/schemas/LookupCacheBase'
|
|
5033
|
+
Topic:
|
|
5034
|
+
type: object
|
|
5035
|
+
description: Topic as returned by the API.
|
|
5036
|
+
required:
|
|
5037
|
+
- _id
|
|
5038
|
+
- _userId
|
|
5039
|
+
- name
|
|
5040
|
+
- retentionMs
|
|
5041
|
+
- createdAt
|
|
5042
|
+
- lastModified
|
|
5043
|
+
properties:
|
|
5044
|
+
_id:
|
|
5045
|
+
type: string
|
|
5046
|
+
format: objectId
|
|
5047
|
+
readOnly: true
|
|
5048
|
+
x-celigo-refModel: topics
|
|
5049
|
+
description: |-
|
|
5050
|
+
Unique identifier for the topic. Topic exports and imports bind to it through
|
|
5051
|
+
`topic._topicId`, and it is the `_topicId` used by every `/v1/topics/{_id}/…` endpoint.
|
|
5052
|
+
examples:
|
|
5053
|
+
- 6ab1f44d7c4b4e699fe84b0a
|
|
5054
|
+
_userId:
|
|
5055
|
+
type: string
|
|
5056
|
+
format: objectId
|
|
5057
|
+
readOnly: true
|
|
5058
|
+
x-celigo-refModel: users
|
|
5059
|
+
description: Account owner whose license and topic quota the topic counts against.
|
|
5060
|
+
examples:
|
|
5061
|
+
- 624cb0346309dc3a543733a2
|
|
5062
|
+
name:
|
|
5063
|
+
type: string
|
|
5064
|
+
maxLength: 200
|
|
5065
|
+
description: |-
|
|
5066
|
+
Display name shown in the UI. Empty when the topic was created without one; not unique, so
|
|
5067
|
+
use `_id` to identify a topic.
|
|
5068
|
+
examples:
|
|
5069
|
+
- orders.created
|
|
5070
|
+
description:
|
|
5071
|
+
type:
|
|
5072
|
+
- string
|
|
5073
|
+
- 'null'
|
|
5074
|
+
maxLength: 5120
|
|
5075
|
+
description: What the topic carries and which flows consume it. Absent or null when never set.
|
|
5076
|
+
examples:
|
|
5077
|
+
- One event per order placed. Consumed by the fulfillment and finance flows.
|
|
5078
|
+
retentionMs:
|
|
5079
|
+
type: integer
|
|
5080
|
+
minimum: 3600000
|
|
5081
|
+
maximum: 7776000000
|
|
5082
|
+
default: 604800000
|
|
5083
|
+
description: |-
|
|
5084
|
+
How long a published message stays readable, in milliseconds, before it is dropped from the
|
|
5085
|
+
stream whether or not a listener consumed it. The week-long default applies when the topic was
|
|
5086
|
+
created without one.
|
|
5087
|
+
examples:
|
|
5088
|
+
- 604800000
|
|
5089
|
+
- 3600000
|
|
5090
|
+
externalId:
|
|
5091
|
+
type: string
|
|
5092
|
+
maxLength: 1024
|
|
5093
|
+
description: |-
|
|
5094
|
+
Caller-chosen key set at creation or update. Present only when it was supplied; filter the
|
|
5095
|
+
list with `GET /v1/topics?externalId=…`.
|
|
5096
|
+
examples:
|
|
5097
|
+
- erp-orders-created
|
|
5098
|
+
_integrationId:
|
|
5099
|
+
type: string
|
|
5100
|
+
format: objectId
|
|
5101
|
+
readOnly: true
|
|
5102
|
+
x-celigo-refModel: integrations
|
|
5103
|
+
description: |-
|
|
5104
|
+
Integration App installation that owns the topic. Present only on topics created by an
|
|
5105
|
+
Integration App; absent on topics you create directly, which are shared across integrations
|
|
5106
|
+
through `_registeredTopicIds` instead.
|
|
5107
|
+
examples:
|
|
5108
|
+
- 6ab1f4a138d7733b45998d99
|
|
5109
|
+
_connectorId:
|
|
5110
|
+
type: string
|
|
5111
|
+
format: objectId
|
|
5112
|
+
readOnly: true
|
|
5113
|
+
x-celigo-refModel: connectors
|
|
5114
|
+
description: |-
|
|
5115
|
+
Integration App (connector) that installed the topic. Present only on connector-managed
|
|
5116
|
+
topics, which the connector — not the user — registers and deregisters.
|
|
5117
|
+
examples:
|
|
5118
|
+
- 5b3c8f9a2e1d4c0011223344
|
|
5119
|
+
_templateId:
|
|
5120
|
+
type: string
|
|
5121
|
+
format: objectId
|
|
5122
|
+
readOnly: true
|
|
5123
|
+
x-celigo-refModel: templates
|
|
5124
|
+
description: Template the topic was installed from. Present only when it originated from a template.
|
|
5125
|
+
examples:
|
|
5126
|
+
- 6a27a36f9cea1a85192e72cd
|
|
5127
|
+
_sourceId:
|
|
5128
|
+
type: string
|
|
5129
|
+
format: objectId
|
|
5130
|
+
readOnly: true
|
|
5131
|
+
description: Topic this one was cloned or installed from. Present only on copies.
|
|
5132
|
+
examples:
|
|
5133
|
+
- 6aab2870265e1cf39fcbee4d
|
|
5134
|
+
draft:
|
|
5135
|
+
type: boolean
|
|
5136
|
+
description: |-
|
|
5137
|
+
When true, the topic is an unconfirmed draft (created with `draft: true`, typically by
|
|
5138
|
+
the AI-assisted builder) that auto-deletes at `draftExpiresAt`. Absent on ordinary
|
|
5139
|
+
topics and once a `PUT` with `draft: false` promotes the draft.
|
|
5140
|
+
examples:
|
|
5141
|
+
- true
|
|
5142
|
+
draftExpiresAt:
|
|
5143
|
+
type: string
|
|
5144
|
+
format: date-time
|
|
5145
|
+
readOnly: true
|
|
5146
|
+
description: |-
|
|
5147
|
+
Timestamp when an unconfirmed draft is deleted automatically — 48 hours after
|
|
5148
|
+
creation. Present only while `draft` is true; cleared together with it.
|
|
5149
|
+
examples:
|
|
5150
|
+
- '2026-09-24T03:30:27.432Z'
|
|
5151
|
+
createdAt:
|
|
5152
|
+
type: string
|
|
5153
|
+
format: date-time
|
|
5154
|
+
readOnly: true
|
|
5155
|
+
description: Timestamp when the topic was created.
|
|
5156
|
+
examples:
|
|
5157
|
+
- '2026-09-16T23:38:24.578Z'
|
|
5158
|
+
lastModified:
|
|
5159
|
+
type: string
|
|
5160
|
+
format: date-time
|
|
5161
|
+
readOnly: true
|
|
5162
|
+
description: Timestamp when the topic was last updated by PUT or PATCH.
|
|
5163
|
+
examples:
|
|
5164
|
+
- '2026-09-22T02:51:12.733Z'
|
|
5165
|
+
deletedAt:
|
|
5166
|
+
type: string
|
|
5167
|
+
format: date-time
|
|
5168
|
+
readOnly: true
|
|
5169
|
+
description: |-
|
|
5170
|
+
Timestamp when the topic was moved to the recycle bin. Present only on the copy returned by
|
|
5171
|
+
`GET /v1/recycleBinTTL/topics/{_id}`; deleted topics are hidden from every other endpoint.
|
|
5172
|
+
examples:
|
|
5173
|
+
- '2026-09-22T03:29:50.803Z'
|
|
5174
|
+
Request-3:
|
|
5175
|
+
type: object
|
|
5176
|
+
description: Writable fields for creating or updating a topic.
|
|
5177
|
+
required:
|
|
5178
|
+
- name
|
|
5179
|
+
x-celigo-ai-guidance:
|
|
5180
|
+
- |-
|
|
5181
|
+
Always send name — the server does not enforce it and creates a topic with an empty name
|
|
5182
|
+
that cannot be told apart in lists. On PUT send the whole document: omitted fields are
|
|
5183
|
+
cleared (description, externalId) and retentionMs falls back to seven days.
|
|
5184
|
+
- |-
|
|
5185
|
+
Unknown top-level fields are dropped silently, so a misspelled field does not fail the
|
|
5186
|
+
request — read the response body back to confirm what was stored.
|
|
5187
|
+
properties:
|
|
5188
|
+
name:
|
|
5189
|
+
type: string
|
|
5190
|
+
maxLength: 200
|
|
5191
|
+
description: |-
|
|
5192
|
+
Display name shown in the UI and recorded as `deletedInfo.name` on audit entries. Names need
|
|
5193
|
+
not be unique — exports and imports bind to the topic id, so renaming never breaks a
|
|
5194
|
+
subscription. Script tags and other unsafe HTML are stripped on save.
|
|
5195
|
+
examples:
|
|
5196
|
+
- orders.created
|
|
5197
|
+
description:
|
|
5198
|
+
type:
|
|
5199
|
+
- string
|
|
5200
|
+
- 'null'
|
|
5201
|
+
maxLength: 5120
|
|
5202
|
+
description: |-
|
|
5203
|
+
What the topic carries and which flows consume it. Shown in the UI only; it plays no part in
|
|
5204
|
+
routing. Send null to clear a previous value.
|
|
5205
|
+
examples:
|
|
5206
|
+
- One event per order placed. Consumed by the fulfillment and finance flows.
|
|
5207
|
+
retentionMs:
|
|
5208
|
+
type: integer
|
|
5209
|
+
minimum: 3600000
|
|
5210
|
+
maximum: 7776000000
|
|
5211
|
+
default: 604800000
|
|
5212
|
+
description: |-
|
|
5213
|
+
How long a published message stays readable, in milliseconds, before it is dropped from the
|
|
5214
|
+
stream whether or not a listener consumed it. The default keeps a week of messages, enough for
|
|
5215
|
+
a listener that is paused over a weekend to catch up; the ceiling is further capped by the
|
|
5216
|
+
account license's `topics.retentionCeilingDays`. Changing it on an existing topic
|
|
5217
|
+
re-configures the stream, so messages older than the new window are no longer retained.
|
|
5218
|
+
examples:
|
|
5219
|
+
- 604800000
|
|
5220
|
+
- 3600000
|
|
5221
|
+
x-celigo-ai-guidance:
|
|
5222
|
+
- |-
|
|
5223
|
+
A value above the account's ceiling fails with 422 `topics_retention_exceeds_entitlement`;
|
|
5224
|
+
read the ceiling from `GET /v1/licenses` (`topics.retentionCeilingDays`) before asking for
|
|
5225
|
+
long retention. Below one hour fails with 422 `min`.
|
|
5226
|
+
externalId:
|
|
5227
|
+
type: string
|
|
5228
|
+
maxLength: 1024
|
|
5229
|
+
description: |-
|
|
5230
|
+
Caller-chosen key for finding the topic again without storing its id — filter the list with
|
|
5231
|
+
`GET /v1/topics?externalId=…`. Integration Apps use it to locate a topic across installs.
|
|
5232
|
+
examples:
|
|
5233
|
+
- erp-orders-created
|
|
5234
|
+
draft:
|
|
5235
|
+
type: boolean
|
|
5236
|
+
description: |-
|
|
5237
|
+
When true, the topic is a draft that auto-deletes 48 hours after creation
|
|
5238
|
+
(`draftExpiresAt` in the response). Set at creation; an update can clear the
|
|
5239
|
+
flag but never set it, and a PUT that omits it leaves an existing draft as is —
|
|
5240
|
+
the one field the whole-document PUT does not clear.
|
|
5241
|
+
x-celigo-ai-guidance:
|
|
5242
|
+
- |-
|
|
5243
|
+
POST with `draft: true` arms the 48-hour TTL (the server computes `draftExpiresAt`).
|
|
5244
|
+
PUT with `draft: false` clears the flag and the expiry, promoting the draft to a
|
|
5245
|
+
permanent topic. PUT with `draft: true` on a non-draft topic is silently ignored,
|
|
5246
|
+
and a PUT that omits the field leaves an existing draft flag unchanged.
|
|
5247
|
+
examples:
|
|
5248
|
+
- true
|
|
5249
|
+
__integrationIds:
|
|
5250
|
+
type: array
|
|
5251
|
+
maxItems: 100
|
|
5252
|
+
items:
|
|
5253
|
+
type: string
|
|
5254
|
+
format: objectId
|
|
5255
|
+
x-celigo-refModel: integrations
|
|
5256
|
+
description: |-
|
|
5257
|
+
Integrations to register the new topic on immediately after creation, so flows in those
|
|
5258
|
+
integrations can subscribe to it. Honored only on `POST /v1/topics` (ignored on PUT), never
|
|
5259
|
+
persisted, and not echoed back. Ids are validated before the topic is saved; registration
|
|
5260
|
+
runs after the save, and per-integration failures are reported in
|
|
5261
|
+
`__failedIntegrationRegistrations` on the 201 response without rolling back the new topic.
|
|
5262
|
+
x-celigo-ai-guidance:
|
|
5263
|
+
- |-
|
|
5264
|
+
Invalid input rejects the whole request without creating the topic: a non-array value or
|
|
5265
|
+
duplicate ids fail with 422 `invalid_request`, an element that is not a valid ObjectId fails
|
|
5266
|
+
with 422 `invalid_ref` naming `__integrationIds[i]`, and an integration that does not exist
|
|
5267
|
+
in the account fails with 404.
|
|
5268
|
+
- To register an existing topic instead, use `PUT /v1/integrations/{_id}/topics/{_topicId}/register`.
|
|
5269
|
+
examples:
|
|
5270
|
+
- - 6ab1f4a138d7733b45998d99
|
|
4209
5271
|
ILMIgnoreResponse:
|
|
4210
5272
|
type: object
|
|
4211
5273
|
description: |-
|
|
@@ -4252,6 +5314,13 @@ components:
|
|
|
4252
5314
|
description: Display name of the dependent resource.
|
|
4253
5315
|
examples:
|
|
4254
5316
|
- Import Orders to NetSuite
|
|
5317
|
+
type:
|
|
5318
|
+
type: string
|
|
5319
|
+
description: |-
|
|
5320
|
+
Sub-type of the dependent resource when its collection distinguishes one, such as
|
|
5321
|
+
`stream` for a listener export. Only present for resource types that carry a `type`.
|
|
5322
|
+
examples:
|
|
5323
|
+
- stream
|
|
4255
5324
|
paths:
|
|
4256
5325
|
type: array
|
|
4257
5326
|
description: |-
|