Skip to main content
PUT
Replace a Devin Connect gateway's destinations
Replaces every destination of a Devin Connect gateway. Use it to reconcile a gateway to a list you keep in code. To change one destination without sending the whole list, use Add gateway destinations or Remove gateway destinations.

Permissions

Requires a service user or personal access token with the ManageEnterpriseSettings permission at the enterprise level. Devin Connect must be enabled for the enterprise, otherwise the endpoint returns 403.

Behavior

  • destinations becomes the gateway’s full list. An empty list routes nothing through the gateway.
  • Destinations use the same format and normalization as Add gateway destinations. Duplicates are dropped, and a gateway holds at most 256 destinations.
  • A destination can belong to only one gateway. Sending one that another gateway already routes returns 409.
  • Routing a destination does not let sessions reach it. The session’s security profile must also allow it.
  • Your gateway also enforces its own config.yaml, so a new destination works only once that file allows it too.
  • Changes are recorded in the audit log as update_gateway_hostnames.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

gateway_id
string
required

Body

application/json

Replaces every destination of one gateway.

destinations
DevinConnectDestination · object[]
required

The gateway's full destination list (at most 256, duplicates dropped). An empty list routes nothing through the gateway. A destination may belong to only one gateway.

Response

Successful Response

A Devin Connect gateway and the destinations routed through it.

destinations
DevinConnectDestination · object[]
required

Destinations routed through this gateway

gateway_id
string
required

Gateway id

kind
enum<string>
required

tunnel: the customer gateway dials in; direct: Devin dials the gateway (e.g. over AWS PrivateLink)

Available options:
tunnel,
direct
name
string
required

Gateway name

connected
boolean | null

Whether a tunnel gateway is connected now; null for direct

last_connected_at
integer | null

When a tunnel gateway last reported in