Skip to main content

Update an SMS campaign

PUT 

/api/partner-gateway/campaigns/:id

Updates a campaign that has not been confirmed yet. Fields you leave out keep their value, with the exceptions below.

  • Only before confirmation: the campaign must be in status DRAFT, whether or not readyToSend is true. Once confirmed with PUT /campaigns/{id}/confirm (PRE_BILLED and later) it can no longer be updated.
  • Always required: sendingMode (send the current one to keep it) and destinationType (send the value the campaign was created with: an update cannot change it).
  • The sender is checked against your account: smsSender must be an approved sender (see GET /sms/senders). The campaign is not changed when the check fails.
  • After changing recipients or content, call GET /campaigns/{id}/price for the new recipient count and price.

Two fields are reset when you leave them out. An update without scheduledDate removes the schedule, and an update without readyToSend: true moves the campaign back to DRAFT. Repeat both in every update of a scheduled campaign that is ready to send.

PUT /campaigns/{id} is one endpoint for SMS, RCS and WhatsApp: this page describes it for SMS. See it for RCS or WhatsApp.

Request​

Responses​

Campaign updated, returned as stored.