ca6e9c8f430d

latestOpenAPI 3.0.12026-08-0640103344.9 KB
Orgunit

Add Orgunit Template

Templates are pre-saved messages that can be sent at any time simply by passing a templateId to the Message API. There are two types of templates:

  • Text Templates: Used to send SMS.
  • Media Templates: Used to send MMS.

You can create an orgunit-level template that applies directly to newly created groups.

To create a Media Template, first call the 'Upload Media File' API in the send section, then pass the 'mediaDetails' object from that response into the template object.

post/orgunit/{orgunitId}/templates

Path parameters

orgunitIdstring required

orgunitId

Request body

namestring required

Template name can be alphanumeric characters along with special characters.

messagestring required

This message will be sent to the subscriber when this template is used.

Response

Success

appCodestring
messagestring
isErrorboolean