Update a template's properties
const url = 'https://api.pingram.io/notifications/example/example/templates/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"html":"example","previewText":"example","internal":"example","subject":"example","senderName":"example","senderEmail":"example","title":"example","redirectURL":"example","imageURL":"example","instant":{"title":"example","redirectURL":"example","imageURL":"example"},"batch":{"title":"example","redirectURL":"example","imageURL":"example"},"text":"example","message":"example","icon":"example","url":"example","blocks":[{"additionalProperty":"example"}],"username":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.pingram.io/notifications/example/example/templates/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "html": "example", "previewText": "example", "internal": "example", "subject": "example", "senderName": "example", "senderEmail": "example", "title": "example", "redirectURL": "example", "imageURL": "example", "instant": { "title": "example", "redirectURL": "example", "imageURL": "example" }, "batch": { "title": "example", "redirectURL": "example", "imageURL": "example" }, "text": "example", "message": "example", "icon": "example", "url": "example", "blocks": [ { "additionalProperty": "example" } ], "username": "example" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Notification ID
Channel type
Template ID
Request Body required
Section titled “Request Body required ”Request body for updating a template. Include only properties that apply to the channel in the path. EMAIL: html, subject, senderName, etc. | INAPP_WEB: title, redirectURL, instant, batch | SMS/CALL: text | PUSH/WEB_PUSH: title, message, icon, url | SLACK: text, blocks, username, icon
object
HTML body of the email.
Preview text (e.g. for inbox).
Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field.
Email subject line.
Sender display name.
Sender email address.
Notification title (in-app).
URL to open when the user taps the notification.
Image URL shown in the in-app notification.
Copy for instant (real-time) delivery.
object
Copy for batch delivery.
object
Message text (SMS or call).
Push notification body text. (title is shared with INAPP_WEB above.)
Web push: icon URL. Slack: bot icon (emoji or URL).
Web push: URL to open when the notification is clicked.
Slack message blocks (optional).
object
Slack bot username.
Example generated
{ "html": "example", "previewText": "example", "internal": "example", "subject": "example", "senderName": "example", "senderEmail": "example", "title": "example", "redirectURL": "example", "imageURL": "example", "instant": { "title": "example", "redirectURL": "example", "imageURL": "example" }, "batch": { "title": "example", "redirectURL": "example", "imageURL": "example" }, "text": "example", "message": "example", "icon": "example", "url": "example", "blocks": [ { "additionalProperty": "example" } ], "username": "example"}Responses
Section titled “ Responses ”Successful response
object
object
Example
{ "channel": "EMAIL"}Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Example generated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}Unauthorized
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Example generated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}Internal Server Error
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Example generated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}