Update campaign
Changed onChanges 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.
Request
- Base URLhttps://{Your_Space_Name}.signalwire.com
- URLhttps://{Your_Space_Name}.signalwire.com/api/relay/rest/registry/beta/campaigns/{id}
- AuthHTTP basic
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
- breaking
the
request property's minLength was increased from0to3 - warning
the
request property's maxLength was set to64 - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status
- breaking
Some revisions have not been checked yet.