connections

Update connection

Changed on

Rename a connection or update its credentials and Bridge. Connectors that use it pick up the changes.

Fields left out keep their values. The update returns 400 when a connector that uses the connection couldn't run with the new values, naming that connector.

Required permission: connections.update.

patch/v1/projects/{project_id}/connections/{connection_id}

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

connection_id, string uuid required

Connection ID from GET /connections.

Request body

ConnectionUpdateRequest required

Changes to a connection. Omitted fields keep their values.

name, string nullable

New name, unique per connection type in the project.

bridge, string nullable

Name or ID of the Bridge that connects to a private network, or null to connect directly.

config, object nullable

Fields to change. Fields left out keep their values and null removes an optional field. Secret fields sent as ******** or empty keep their stored value; changing a field a secret belongs with, such as the host, returns 400 unless the secret is sent again.

Response

Successful Response

ConnectionResponse required

Reusable credentials shared by compatible connectors in the project.

id, string uuid required
project_id, string uuid required

Project the connection belongs to.

name, string required
type, string required

Connection type. Related connector types that share credentials use the same type.

bridge, string nullable

ID of the Bridge the connection's traffic goes through, or null for a direct connection.

config, object required

Credential fields, with secret fields masked as ********.

created_at, string required
updated_at, string required
connector_ids, string[]

IDs of the connectors that use this connection, in any environment.

connectors, ConnectionConnectorResponse[]

Connectors that use this connection, in any environment. A connection in use can't be deleted.

Changes

    • info

      response property connectors/items/mode deprecated

    • info

      added the required property connectors/items/key to the response with the status

    • info

      added the new optional request property bridge

    2 more changes in this revision