Skip to main content
PATCH
/
broadcasts
/
{broadcast_id}
/
messages
/
{message_id}
/
contents
/
{id}
Update localized content
curl --request PATCH \
  --url https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages/{message_id}/contents/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "Updated",
  "content": {
    "html": "<p>Updated</p>"
  }
}
'
import requests

url = "https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages/{message_id}/contents/{id}"

payload = {
"subject": "Updated",
"content": { "html": "<p>Updated</p>" }
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({subject: 'Updated', content: {html: '<p>Updated</p>'}})
};

fetch('https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages/{message_id}/contents/{id}', 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://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages/{message_id}/contents/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'subject' => 'Updated',
'content' => [
'html' => '<p>Updated</p>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);

$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://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages/{message_id}/contents/{id}"

payload := strings.NewReader("{\n \"subject\": \"Updated\",\n \"content\": {\n \"html\": \"<p>Updated</p>\"\n }\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "<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.patch("https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages/{message_id}/contents/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": \"Updated\",\n \"content\": {\n \"html\": \"<p>Updated</p>\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages/{message_id}/contents/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subject\": \"Updated\",\n \"content\": {\n \"html\": \"<p>Updated</p>\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "id": 123,
  "message_id": 123,
  "locale": "<string>",
  "is_default": true,
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "content": {
    "mjml": "<string>",
    "html": "<string>",
    "text": "<string>",
    "payload": {}
  },
  "subject": "<string>",
  "preheader_text": "<string>"
}
{
"errors": [
{
"message": "<string>"
}
]
}
{
"errors": [
{
"message": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Accepts either a raw API key or Bearer <key>.

Headers

revision
string

Optional dated API revision for the request. Must use YYYY-MM-DD format.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-03-01"

Path Parameters

broadcast_id
integer
required

Broadcast ID.

message_id
integer
required

Message ID.

id
integer
required

Content ID.

Body

application/json

Partially update broadcast message content. The default content cannot gain a locale and localized content cannot clear it; duplicate locales return 409.

locale
string
name
string | null
subject
string | null
preheader_text
string | null
content
object

The deliverable body for a content record. Exactly one of mjml, html, text, or payload is present, depending on the message channel: email uses mjml/html/text, SMS uses text, push uses payload.

Response

Broadcast content updated.

Content metadata for a broadcast message (one per locale / default). The list response omits content; fetch a single record for the body.

id
integer
required
message_id
integer
required
locale
string | null
required

BCP-47-style locale tag, or null for the default content variant.

is_default
boolean
required
name
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
content
object
required

Full body: exactly one of mjml, html, text, or payload is set.

subject
string | null
preheader_text
string | null