Skip to main content

NetworkSetStatus

Sets the operational status of a network (e.g., Active, Suspended, Terminated).

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

Method Signature​

bool NetworkSetStatus(string SessionID, int NetworkID, Status Status)

Parameters​

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login() with NetOps or higher authority
NetworkIDintYesNumeric identifier of the network to update
StatusStatusYesThe new status to apply to the network

Response​

Returns true if the status was successfully updated, or false if the operation failed.

<!-- Example response XML -->
<NetworkSetStatusResult>true</NetworkSetStatusResult>

ENUMs​

Status​

See Status enum for all possible values.

ValueDescription
DevelopmentNetwork is in setup/development mode
ActiveNetwork is live and processing EDI
PreproductionNetwork is in testing/staging mode
SuspendedNetwork is temporarily disabled
TerminatedNetwork is permanently closed

Code Examples​

// .NET 10 — dotnet-svcutil generated proxy
// Suspend a network temporarily — requires elevated authority
bool success = await client.NetworkSetStatusAsync(
sessionID,
networkId: 42,
status: Status.Suspended);

if (success)
Console.WriteLine("Network status updated to Suspended.");
else
Console.WriteLine("Status update failed — check authority level.");

// Reactivate later
success = await client.NetworkSetStatusAsync(sessionID, networkId: 42, status: Status.Active);

REST Equivalent​

See Update Network — PUT /v2/networks (include a status field in the request body).