v1

latestOpenAPI 3.1.02026-07-2616459400.5 KB
Template API

Update a template

Update template name and/or template content stored in the Netcore CPaaS dashboard.

Pass the template_id and only the fields you want to change.

patch/template

Headers

api_keystring required
Example:x-api-key-123456789

Add your Netcore CPaaS dashboard Email API key.

Request body

template_idinteger required

Add the template ID you want to update.

template_namestring

Add a new template name if you want to rename the template.

Example request

{
  "template_id": 102345,
  "template_name": "order_confirmation_v2",
  "content": [
    {
      "type": "html",
      "value": "<html><body>Hello [% NAME %], your order has shipped.</body></html>"
    }
  ]
}

Response

Template updated successfully

messagestring
statusstring

Example response

{
  "data": {
    "template_id": 102345,
    "template_name": "order_confirmation_v2"
  },
  "message": "Template updated",
  "status": "success"
}