UpdateSMSCampaign

Updates an existing SMS campaign

This method is used to update an existing SMS campaign in your account.

The ‘campaignId’, 'name' and 'message' fields are mandatory. Your SMS campaign name can be a maximum of 255 characters.

If a 'sendingIdentity' is specified, it must exist as a sending identity (found in 'SMS from names') in your account. This can be a maximum of 15 characters. If you don't specify a sending identity, the default identity from your account will be used for this SMS campaign.

If 'toggleShortLinks' is set to true, any URL links that are present in your SMS campaign content must be formatted properly, including the protocol. If you this isn’t the case, a validation error message will be returned by the API.

Campaigns that are deleted or already scheduled can not be updated. If you attempt to update an SMS campaign with one of these statuses, you will receive an appropriate validation error message.

SOAP action: http://apiconnector.com/v2/sms/campaigns/{campaignId}

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • name - required; string
  • message - required; string
  • sendingIdentity - string
  • toggleShortLinks - boolean

Output parameters
No output

Example

using (var client = new ApiServiceClient())
{
    client.ClientCredentials.UserName.UserName = "username";
    client.ClientCredentials.UserName.Password = "password";

    var smsTestCampaign = new ApiSmsCampaign
    {
	 ID = 3
        Name = "SMS Test Campaign 3",
        Message = "Test SMS campaign message content 3",
        SendingIdentity = "dotdigital",
        ToggleShortLinks = "false"

    };

    var result = client.UpdateSMSCampaign(smsTestCampaign).Result;
}