NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Connections (Trunks) → Delete a Specific Connection for a Domain

AI-generated

Summary

Delete a specific connection for a given domain

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • DeleteDomainsByConnectionsBy__path__domain (required) —
  • DeleteDomainsByConnectionsBy__path__connection-id (required) — This is the connection-id for a specific connection. It is a base64 of connection-orig-match-pattern if you need to do that. Pre v46 code will use just connection-orig-match-pattern, will fail of : is in the path.

Output shape

no body — success/failure only

Returns a 204 No Content on success; error details may be returned on failure.

Examples

Example 1: Delete a connection for domain example.com

Domain: example.com, Connection ID:

Example 2: Delete a connection with refreshed options

Domain: test.org, Connection ID: xyz, Refresh Dropdown Cache: true

Example 3: Attempt delete on non‑existent domain

Domain: nonexistent.com, Connection ID: 123 (will return error)

Links

Discussion