Skip to main content

CommUpdate

Updates the identifier and/or status of an existing communication channel.

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

Method Signature

CommIDInfo CommUpdate(string SessionID, int CommID, string Identifier, Status Status)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
CommIDintYesUnique identifier of the comm channel to update
IdentifierstringYesNew protocol-specific identifier (hostname, AS2 ID, URL, etc.)
StatusStatusYesNew status for the comm channel

Response Object — CommIDInfo

Returns the updated CommIDInfo object reflecting the changes.

FieldTypeDescription
CommIDintUnique identifier of the comm channel
MailboxIDintMailbox associated with this comm channel
CommTypeNetworkGatewayCommChannelProtocol type (unchanged)
IdentifierstringUpdated protocol-specific identifier
StatusStatusUpdated status
UseTypeUseTypeUse type (unchanged)
PrivateKeyRequiredboolWhether a private key is required (unchanged)
WithCertsboolWhether certificate details are included
<!-- Example response XML -->
<CommIDInfo>
<CommID>4521</CommID>
<MailboxID>100</MailboxID>
<CommType>sftp</CommType>
<Identifier>sftp.updatedhost.com</Identifier>
<Status>Active</Status>
<UseType>Production</UseType>
<PrivateKeyRequired>false</PrivateKeyRequired>
<WithCerts>false</WithCerts>
</CommIDInfo>

ENUMs

Status

ValueDescription
DevelopmentIn development
ActiveActive and operational
PreproductionStaging / pre-production
SuspendedTemporarily suspended
TerminatedPermanently terminated

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
using ECGridOSClient;

var client = new ECGridOSPortTypeClient();

// Update comm channel 4521 with a new hostname and keep it active
CommIDInfo updated = await client.CommUpdateAsync(
sessionID,
CommID: 4521,
Identifier: "sftp.updatedhost.com",
Status: Status.Active);

Console.WriteLine($"CommID: {updated.CommID}");
Console.WriteLine($"Identifier: {updated.Identifier}");
Console.WriteLine($"Status: {updated.Status}");

REST Equivalent

See Update CommPUT /v2/comms/update.