Update Template
curl --request PUT \
--url https://api.example.com/api/v2/Template \
--header 'Content-Type: application/json' \
--data '
{
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/Template"
payload = {
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TemplateName: '<string>',
MessageTemplate: '<string>',
ApiKey: '<string>',
ClientId: '<string>'
})
};
fetch('https://api.example.com/api/v2/Template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ErrorCode": 123,
"ErrorDescription": "<string>",
"Data": "<string>"
}Template Management
Update Template
Update an existing message template
Update Template
curl --request PUT \
--url https://api.example.com/api/v2/Template \
--header 'Content-Type: application/json' \
--data '
{
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/Template"
payload = {
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TemplateName: '<string>',
MessageTemplate: '<string>',
ApiKey: '<string>',
ClientId: '<string>'
})
};
fetch('https://api.example.com/api/v2/Template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ErrorCode": 123,
"ErrorDescription": "<string>",
"Data": "<string>"
}Update Template
Update the content or name of an existing message template.curl -X PUT "https://app.notify.ng/api/v2/Template?id=138" \
-H "Content-Type: application/json" \
-d '{
"TemplateName": "Updated Welcome Message",
"MessageTemplate": "Welcome to ##CompanyName##! Your account ID is ##AccountId##. We are excited to have you on board.",
"ApiKey": "YOUR_API_KEY",
"ClientId": "YOUR_CLIENT_ID"
}'
const response = await fetch('https://app.notify.ng/api/v2/Template?id=138', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
TemplateName: 'Updated Welcome Message',
MessageTemplate: 'Welcome to ##CompanyName##! Your account ID is ##AccountId##. We are excited to have you on board.',
ApiKey: 'YOUR_API_KEY',
ClientId: 'YOUR_CLIENT_ID'
})
});
const data = await response.json();
console.log(data);
import requests
url = "https://app.notify.ng/api/v2/Template?id=138"
data = {
"TemplateName": "Updated Welcome Message",
"MessageTemplate": "Welcome to ##CompanyName##! Your account ID is ##AccountId##. We are excited to have you on board.",
"ApiKey": "YOUR_API_KEY",
"ClientId": "YOUR_CLIENT_ID"
}
response = requests.put(url, json=data)
result = response.json()
print(result)
Parameters
number
required
ID of the template to update
Request Body
string
required
Updated name of the template
string
required
Updated template content with placeholders
string
required
Your API key for authentication
string
required
Your client identifier for authentication
Response
number
Error code (0 for success)
string
Description of the result
string
Success message
Success Response
{
"ErrorCode": 0,
"ErrorDescription": "Success",
"Data": "Template updated Successfully."
}
Use Cases
- Content updates: Modify template content for better messaging
- Brand changes: Update templates to reflect new branding
- Compliance: Update templates to meet new regulatory requirements
- A/B testing: Create variations of existing templates

