Skip to main content

NetworkGateway

Sets the default gateway communication channel (Comm) for a network.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

NetworkIDInfo NetworkGateway(string SessionID, int NetworkID, int CommID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login() with NetworkAdmin or higher authority
NetworkIDintYesNumeric identifier of the network to configure
CommIDintYesNumeric identifier of the Comm record to set as the default gateway

Response Object — NetworkIDInfo

Returns the updated NetworkIDInfo record with the new gateway configuration applied.

FieldTypeDescription
NetworkIDintNumeric identifier of the network
UniqueIDstringUnique string identifier of the network
CompanyNamestringDisplay name of the network
StatusStatusCurrent status of the network
CreateddateTimeUTC creation timestamp
ModifieddateTimeUTC timestamp of the most recent modification
<!-- Example response XML -->
<NetworkIDInfo>
<NetworkID>42</NetworkID>
<UniqueID>MYNETWORK</UniqueID>
<CompanyName>My Network Company</CompanyName>
<Status>Active</Status>
<Created>2020-01-15T00:00:00</Created>
<Modified>2026-05-07T14:00:00</Modified>
</NetworkIDInfo>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Assign CommID 101 as the default gateway for network 42
// Use CommFind or CommList to look up valid CommID values first
var updated = await client.NetworkGatewayAsync(
sessionID,
networkId: 42,
commId: 101);

Console.WriteLine($"Gateway updated for network: {updated.CompanyName}");
Console.WriteLine($"Modified: {updated.Modified:yyyy-MM-dd HH:mm}");

See Also

  • CommList — retrieve available Comm channel IDs
  • CommFind — search for a Comm by criteria

REST Equivalent

See Update Network ConfigPOST /v2/networks/update-config.