Update an RCS 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 notreadyToSendis true. Once confirmed withPUT /campaigns/{id}/confirm(PRE_BILLEDand later) it can no longer be updated. - Always required:
sendingMode(send the current one to keep it) anddestinationType(send the value the campaign was created with: an update cannot change it). - The template is checked against your account:
rcsTemplateIdmust be an enabled RCS template, and withRCS_SMSsmsSendermust be an approved sender. The campaign is not changed when a check fails. - After changing recipients or content, call
GET /campaigns/{id}/pricefor the new recipient count and price.
Two fields are reset when you leave them out. An update without
scheduledDateremoves the schedule, and an update withoutreadyToSend: truemoves the campaign back toDRAFT. 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 RCS. See it for SMS or WhatsApp.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Campaign updated, returned as stored.
The body is invalid (including a missing sendingMode or destinationType, or whatsappTemplateId without whatsappPhoneNumberId), or the campaign can no longer be edited.
The API key is missing or invalid, or holds neither CAMPAIGNS nor the operation of every channel of the campaign's sendingMode.
smsSender is not an approved sender of your account (see GET /sms/senders).
No campaign with this ID in your account, rcsTemplateId is not an enabled RCS template of your account, or whatsappPhoneNumberId is not one of your WhatsApp phone numbers.