Update WhatsApp campaign
curl --request PUT \
--url http://localhost:8787/api/v1/whatsapp/campaigns/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "http://localhost:8787/api/v1/whatsapp/campaigns/{id}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8787/api/v1/whatsapp/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));WhatsApp Campaigns
Update WhatsApp campaign
Update WhatsApp campaign settings and replace template mappings
PUT
/
whatsapp
/
campaigns
/
{id}
Update WhatsApp campaign
curl --request PUT \
--url http://localhost:8787/api/v1/whatsapp/campaigns/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "http://localhost:8787/api/v1/whatsapp/campaigns/{id}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8787/api/v1/whatsapp/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Updates configuration fields for a WhatsApp campaign. If
templates array is provided in the request payload, the entire set of template mappings is replaced wholesale.
Path parameters
string
required
The unique UUID of the WhatsApp campaign.
Body parameters
string
Updated campaign name.
string
Updated Meta phone number ID.
boolean
Enable or disable the campaign.
object[]
curl -X PUT https://api.agentic-os.com/api/v1/whatsapp/campaigns/55555555-5555-5555-5555-555555555555 \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"isActive": true,
"templates": [
{
"templateName": "call_summary_v2",
"languageCode": "en_US",
"process": "OUTGOING",
"callStatus": "ANSWERED"
}
]
}'
import requests
response = requests.put(
"https://api.agentic-os.com/api/v1/whatsapp/campaigns/55555555-5555-5555-5555-555555555555",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={
"isActive": True,
"templates": [
{
"templateName": "call_summary_v2",
"languageCode": "en_US",
"process": "OUTGOING",
"callStatus": "ANSWERED",
}
],
},
)
print(response.json())
const response = await fetch(
"https://api.agentic-os.com/api/v1/whatsapp/campaigns/55555555-5555-5555-5555-555555555555",
{
method: "PUT",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
isActive: true,
templates: [
{
templateName: "call_summary_v2",
languageCode: "en_US",
process: "OUTGOING",
callStatus: "ANSWERED",
},
],
}),
},
);
const data = await response.json();
console.log(data);
Response
{
"id": "55555555-5555-5555-5555-555555555555",
"tenantId": "990e8400-e29b-41d4-a716-446655440000",
"agentId": "11111111-1111-1111-1111-111111111111",
"name": "Post-Call Customer Follow-up",
"phoneNumberId": "105938472910293",
"isActive": true,
"templates": [
{
"id": "template_3",
"templateName": "call_summary_v2",
"languageCode": "en_US",
"process": "OUTGOING",
"callStatus": "ANSWERED"
}
],
"createdAt": "2026-06-01T11:00:00.000Z",
"updatedAt": "2026-06-01T11:30:00.000Z"
}
⌘I

