Broadcasts
Update broadcast
Requires authentication — see Authentication.
Updates some information from an existing Broadcast identified by its unique ID.
The Update Broadcast method is used to configure the delivery dates of Broadcasts with Pending status.
This endpoint only modifies a Broadcast that already exists — it does not create one. The initial status (Now, Scheduled, or Pending) is set when the Broadcast is created; see the Scheduling status section on Create Broadcast. Use Update Broadcast only to change the delivery date of a Broadcast that is already in Pending status.
put/v2/broadcasts/{id}
Request
- Base URLhttps://elastic.messangi.me/thenightswatch
- URLhttps://elastic.messangi.me/thenightswatch/v2/broadcasts/{id}
- AuthHTTP bearer
Path parameters
idinteger required
Provide the unique ID of the broadcast
Request body
Example request
{
"deliveryMethod": "SMS",
"campaignName": "Billing notice",
"description": "Payment notification to users subscribed to the service",
"listId": 1,
"listField": "mobile",
"filters": "mobile%5B%24like%5D%3D%2B",
"filterName": "only sms users",
"segmentId": "5fa14d7689ad7743152b0cf0",
"message": "Payment notification to users subscribed to the service",
"origin": "8888",
"broadcastDate": "2020-08-08T19:43:36.278949Z",
"throttle": 120,
"callbacks": [
"http://www.mycalbackk.com?id=1",
"http://www.mycalbackk.com?id=2"
],
"emailField": "email",
"clientId": "cpf",
"fallback": {
"fallback": {
"channels": [
{
"type": "SMS",
"from": "4242"
}
]
}
},
"requestDR": true
}Response
Successfully updated the broadcast
Example response
{
"meta": {
"timestamp": 1597166699457,
"transactionId": "70169d77-c165-4795-9932-35b8a3af96fb",
"explain": "a descriptive text"
},
"data": {
"id": 1,
"beginDate": "2020-08-08T19:43:36.278949Z",
"endDate": "2020-08-08T19:46:36.278949Z",
"deliveryMethod": "SMS",
"campaignName": "Billing notice",
"createdBy": "root",
"operator": "root",
"description": "Payment notification to users subscribed to the service",
"listId": 1,
"listSize": 1000,
"listField": "mobile",
"filters": "mobile%5B%24like%5D%3D%2B",
"filterName": "only sms users",
"segmentId": "5fa14d7689ad7743152b0cf0",
"message": "Payment notification to users subscribed to the service",
"origin": "8888",
"broadcastDate": "2020-08-08T19:43:36.278949Z",
"broadcastStatus": "DONE",
"createdAt": "2020-08-08T19:43:36.278949Z",
"throttle": 120,
"callbacks": [
"http://www.mycalbackk.com?id=1",
"http://www.mycalbackk.com?id=2",
"http://www.mycalbackk.com?id=3"
],
"notSentCounter": 120,
"messagesSentCounter": 880,
"smsField": "mobile",
"emailField": "email",
"clientId": "cpf",
"fallback": {
"fallback": {
"channels": [
{
"type": "SMS",
"from": "4242"
}
]
}
},
"multimediaFileName": "filename",
"requestDR": true,
"subject": "Updates to our Terms of Service",
"draftId": "149",
"attachmentName": "dummy.pdf",
"rcsConfig": {
"rcsMessage": {
"title": "Demo",
"description": "Hi [[mobile]]",
"cardImageUrl": "https://branding-logos.s3.amazonaws.com/spaces/162/sidebarLogo.png",
"mediaHeight": "short",
"cardOrientation": "horizontal",
"thumbnailAlignment": "right"
},
"rcsMessageType": "standalonecard"
},
"whatsappConfig": {
"whatsappTemplateName": "template-name"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.