@celigo/api-specs 0.2.12 → 0.2.14
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/integration.yml +42 -0
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/integration.yml
CHANGED
|
@@ -1474,6 +1474,26 @@ paths:
|
|
|
1474
1474
|
description: |-
|
|
1475
1475
|
Removes a connection's registration from the integration. This does not delete the connection
|
|
1476
1476
|
itself -- it only removes it from the integration's registered-connections list.
|
|
1477
|
+
|
|
1478
|
+
Fails while any resource in the integration still uses the connection -- a step
|
|
1479
|
+
(export, import, or lookup) in one of its flows, Tools, or APIs bound to it through
|
|
1480
|
+
`_connectionId`, or an alias on the integration or one of its flows whose
|
|
1481
|
+
`_connectionId` points at it. Move the steps to another connection first (a whole flow
|
|
1482
|
+
at once with `PUT /v1/flows/{_id}/replaceConnection`; Tool and API steps through their
|
|
1483
|
+
own step-level `replaceConnection`), remove any alias that still points at it, then
|
|
1484
|
+
unregister.
|
|
1485
|
+
x-celigo-ai-guidance:
|
|
1486
|
+
- |-
|
|
1487
|
+
Before calling, list what the integration still binds to this connection: the
|
|
1488
|
+
`_connectionId` of every export and import in the integration
|
|
1489
|
+
(`GET /v1/integrations/{_id}/exports` and `/imports` cover flow, Tool, and API
|
|
1490
|
+
steps) and every `aliases[]._connectionId` on the integration and its flows. While
|
|
1491
|
+
any remain the platform returns 400 `not_allowed` -- "The connection is being actively
|
|
1492
|
+
used by the integration. Please ensure no integration resource is using the
|
|
1493
|
+
connection before deregistering." for a bound step, "This connection is being
|
|
1494
|
+
referenced by an alias. Delete the alias before deregistering the connection." for
|
|
1495
|
+
an alias. Aliases are separate from step bindings: retarget or remove the matching
|
|
1496
|
+
`aliases` entries on the integration or flow as their own write.
|
|
1477
1497
|
parameters:
|
|
1478
1498
|
- name: _id
|
|
1479
1499
|
in: path
|
|
@@ -1498,6 +1518,28 @@ paths:
|
|
|
1498
1518
|
responses:
|
|
1499
1519
|
'204':
|
|
1500
1520
|
description: Connection unregistered successfully. No body returned.
|
|
1521
|
+
'400':
|
|
1522
|
+
description: |-
|
|
1523
|
+
A resource in the integration still uses the connection -- a flow, Tool, or API
|
|
1524
|
+
step bound to it ("The connection is being actively used by the integration..."),
|
|
1525
|
+
or an alias on the integration or one of its flows that points at it ("This
|
|
1526
|
+
connection is being referenced by an alias. Delete the alias before deregistering
|
|
1527
|
+
the connection."). Error code: `not_allowed` for both.
|
|
1528
|
+
content:
|
|
1529
|
+
application/json:
|
|
1530
|
+
schema:
|
|
1531
|
+
$ref: '#/components/schemas/Error'
|
|
1532
|
+
examples:
|
|
1533
|
+
in_use:
|
|
1534
|
+
value:
|
|
1535
|
+
errors:
|
|
1536
|
+
- code: not_allowed
|
|
1537
|
+
message: The connection is being actively used by the integration. Please ensure no integration resource is using the connection before deregistering.
|
|
1538
|
+
alias_referenced:
|
|
1539
|
+
value:
|
|
1540
|
+
errors:
|
|
1541
|
+
- code: not_allowed
|
|
1542
|
+
message: This connection is being referenced by an alias. Delete the alias before deregistering the connection.
|
|
1501
1543
|
'401':
|
|
1502
1544
|
$ref: '#/components/responses/401-unauthorized'
|
|
1503
1545
|
'404':
|
package/package.json
CHANGED