curl --request PUT \
--url https://dash.dmly.io/api/v1/broadcasts/{broadcast} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "June flash sale (updated)",
"message": {
"template": "promo_june_v2",
"language": "en",
"components": []
},
"scheduled_at": "2026-07-02T09:00:00+00:00",
"timezone_mode": "fixed",
"scheduled_local_at": "2026-07-02 09:00:00",
"purpose": "service",
"requires_approval": true
}
'import requests
url = "https://dash.dmly.io/api/v1/broadcasts/{broadcast}"
payload = {
"name": "June flash sale (updated)",
"message": {
"template": "promo_june_v2",
"language": "en",
"components": []
},
"scheduled_at": "2026-07-02T09:00:00+00:00",
"timezone_mode": "fixed",
"scheduled_local_at": "2026-07-02 09:00:00",
"purpose": "service",
"requires_approval": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'June flash sale (updated)',
message: {template: 'promo_june_v2', language: 'en', components: []},
scheduled_at: '2026-07-02T09:00:00+00:00',
timezone_mode: 'fixed',
scheduled_local_at: '2026-07-02 09:00:00',
purpose: 'service',
requires_approval: true
})
};
fetch('https://dash.dmly.io/api/v1/broadcasts/{broadcast}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dash.dmly.io/api/v1/broadcasts/{broadcast}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'June flash sale (updated)',
'message' => [
'template' => 'promo_june_v2',
'language' => 'en',
'components' => [
]
],
'scheduled_at' => '2026-07-02T09:00:00+00:00',
'timezone_mode' => 'fixed',
'scheduled_local_at' => '2026-07-02 09:00:00',
'purpose' => 'service',
'requires_approval' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dash.dmly.io/api/v1/broadcasts/{broadcast}"
payload := strings.NewReader("{\n \"name\": \"June flash sale (updated)\",\n \"message\": {\n \"template\": \"promo_june_v2\",\n \"language\": \"en\",\n \"components\": []\n },\n \"scheduled_at\": \"2026-07-02T09:00:00+00:00\",\n \"timezone_mode\": \"fixed\",\n \"scheduled_local_at\": \"2026-07-02 09:00:00\",\n \"purpose\": \"service\",\n \"requires_approval\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://dash.dmly.io/api/v1/broadcasts/{broadcast}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"June flash sale (updated)\",\n \"message\": {\n \"template\": \"promo_june_v2\",\n \"language\": \"en\",\n \"components\": []\n },\n \"scheduled_at\": \"2026-07-02T09:00:00+00:00\",\n \"timezone_mode\": \"fixed\",\n \"scheduled_local_at\": \"2026-07-02 09:00:00\",\n \"purpose\": \"service\",\n \"requires_approval\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dash.dmly.io/api/v1/broadcasts/{broadcast}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"June flash sale (updated)\",\n \"message\": {\n \"template\": \"promo_june_v2\",\n \"language\": \"en\",\n \"components\": []\n },\n \"scheduled_at\": \"2026-07-02T09:00:00+00:00\",\n \"timezone_mode\": \"fixed\",\n \"scheduled_local_at\": \"2026-07-02 09:00:00\",\n \"purpose\": \"service\",\n \"requires_approval\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Update a broadcast (PUT or PATCH).
Updates the broadcast’s name, audience, message, schedule, retarget config or approval flag. Re-requiring approval voids any prior sign-off. A broadcast cannot retarget itself (422). All fields are optional. The schedule is only re-derived when the request carries at least one of schedule, scheduled_at, timezone_mode or scheduled_local_at, so a partial update that omits all four leaves the existing schedule and timezone mode untouched. The two modes are the same as on create: ‘fixed’ sends every recipient at the scheduled_at instant, ‘contact’ sends each recipient at the scheduled_local_at wall clock in their own timezone (required in that mode, and it overrides any scheduled_at sent with it). message.coupon_code and message.expiration_time_ms follow the same rules as on create and are checked against the schedule the broadcast will have after the update. purpose is ‘promotional’ (the default) or ‘service’. It decides whether a broadcast without a WhatsApp template reaches contacts who opted out of promotions only: a service update does, a promotional broadcast does not. A WhatsApp template broadcast ignores it and follows the template’s Meta category (MARKETING is promotional; UTILITY and AUTHENTICATION are not), and a paid Messenger marketing message is always promotional. Contacts who opted out of everything (STOP) never receive a broadcast. The response carries purpose and effective_purpose, which is what the send will apply.
curl --request PUT \
--url https://dash.dmly.io/api/v1/broadcasts/{broadcast} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "June flash sale (updated)",
"message": {
"template": "promo_june_v2",
"language": "en",
"components": []
},
"scheduled_at": "2026-07-02T09:00:00+00:00",
"timezone_mode": "fixed",
"scheduled_local_at": "2026-07-02 09:00:00",
"purpose": "service",
"requires_approval": true
}
'import requests
url = "https://dash.dmly.io/api/v1/broadcasts/{broadcast}"
payload = {
"name": "June flash sale (updated)",
"message": {
"template": "promo_june_v2",
"language": "en",
"components": []
},
"scheduled_at": "2026-07-02T09:00:00+00:00",
"timezone_mode": "fixed",
"scheduled_local_at": "2026-07-02 09:00:00",
"purpose": "service",
"requires_approval": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'June flash sale (updated)',
message: {template: 'promo_june_v2', language: 'en', components: []},
scheduled_at: '2026-07-02T09:00:00+00:00',
timezone_mode: 'fixed',
scheduled_local_at: '2026-07-02 09:00:00',
purpose: 'service',
requires_approval: true
})
};
fetch('https://dash.dmly.io/api/v1/broadcasts/{broadcast}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dash.dmly.io/api/v1/broadcasts/{broadcast}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'June flash sale (updated)',
'message' => [
'template' => 'promo_june_v2',
'language' => 'en',
'components' => [
]
],
'scheduled_at' => '2026-07-02T09:00:00+00:00',
'timezone_mode' => 'fixed',
'scheduled_local_at' => '2026-07-02 09:00:00',
'purpose' => 'service',
'requires_approval' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dash.dmly.io/api/v1/broadcasts/{broadcast}"
payload := strings.NewReader("{\n \"name\": \"June flash sale (updated)\",\n \"message\": {\n \"template\": \"promo_june_v2\",\n \"language\": \"en\",\n \"components\": []\n },\n \"scheduled_at\": \"2026-07-02T09:00:00+00:00\",\n \"timezone_mode\": \"fixed\",\n \"scheduled_local_at\": \"2026-07-02 09:00:00\",\n \"purpose\": \"service\",\n \"requires_approval\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://dash.dmly.io/api/v1/broadcasts/{broadcast}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"June flash sale (updated)\",\n \"message\": {\n \"template\": \"promo_june_v2\",\n \"language\": \"en\",\n \"components\": []\n },\n \"scheduled_at\": \"2026-07-02T09:00:00+00:00\",\n \"timezone_mode\": \"fixed\",\n \"scheduled_local_at\": \"2026-07-02 09:00:00\",\n \"purpose\": \"service\",\n \"requires_approval\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dash.dmly.io/api/v1/broadcasts/{broadcast}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"June flash sale (updated)\",\n \"message\": {\n \"template\": \"promo_june_v2\",\n \"language\": \"en\",\n \"components\": []\n },\n \"scheduled_at\": \"2026-07-02T09:00:00+00:00\",\n \"timezone_mode\": \"fixed\",\n \"scheduled_local_at\": \"2026-07-02 09:00:00\",\n \"purpose\": \"service\",\n \"requires_approval\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Authorizations
Body
Response
Success.
Was this page helpful?

