Update campaign
Changes the editable fields of an existing US 10-digit long code (10DLC) campaign by ID. Use it to maintain the campaign registration itself; phone numbers are added through Create phone number assignment order and removed through the assignment delete operation.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Messaging and Numbers.
Learn more about API scopes.
Path parameters
Universal Unique Identifier.
Unique ID of the campaign.
Request body
Example request
{
"name": "My Campaign",
"signalwire_contact_emails": [
"campaign_registrations@example.com"
],
"status_callback_url": "https://example.com/handle_callback"
}Response
The request has succeeded.
Example response
{
"name": "My Campaign",
"state": "pending",
"sms_use_case": "MARKETING",
"sample1": "this is a sample message your customer might receive",
"sample2": "this is a sample message your customer might receive",
"message_flow": "Users will opt in to receive messages from their doctor through a written form and we will send them an opt in message. Appointment reminders will then be sent ahead of their appointments.",
"opt_in_message": "Thanks for subscribing. Reply STOP to cancel at any time.",
"opt_out_message": "You have successfully been opted out. Reply START to opt back in at any time.",
"help_message": "You have successfully been opted out. Reply SUBSCRIBE to opt back in at any time.",
"opt_in_keywords": "Start,Subscribe,Opt In",
"opt_out_keywords": "Stop,Opt Out,Unsubscribe",
"help_keywords": "Help,Support,Request Call",
"number_pooling_required": true,
"number_pooling_per_campaign": "We have customer reps in every state and they each need their own number with local area code.",
"direct_lending": true,
"age_gated_content": true,
"lead_generation": true,
"csp_campaign_reference": "1231231",
"signalwire_contact_emails": [
"campaign_registrations@example.com"
],
"status_callback_url": "https://example.com/handle_callback"
}Changes
Changed in 1 of the 161 revisions of this API.113
- ▲
the
request property's minLength was increased from0to3request-property-min-length-increased
- ●
the
request property's maxLength was set to64request-property-max-length-set
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ▲
Of the 161 revisions, 3 have a changelog that could not be searched.