Interface TemplatesServiceV2
public interface TemplatesServiceV2
Templates V2
Version 2 endpoints for managing message templates.
Recommended version for all users.
Includes strongly typed translations
field (allowing for message definition using
JSON structures also used in the send message request of the Conversation API), improved
validation, and the ability to override omni-channel templates in favor of channel-specific
templates (where available).
- Since:
- 1.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(TemplateV2 template) Creates a templatevoid
Delete a templateGet a templatelist()
List all templates belonging to a project ID.listTranslations
(String templateId, TranslationListRequest request) List translations for a templateupdate
(String templateId, TemplateV2 template) Updates a template
-
Method Details
-
list
Collection<TemplateV2> list()List all templates belonging to a project ID.- Returns:
- List of templates
- Since:
- 1.3
-
listTranslations
List translations for a template- Parameters:
templateId
- The ID of the template to fetchrequest
- Parameters for request- Returns:
- The translations list
- Since:
- 1.3
-
create
Creates a template- Parameters:
template
- Information for creation- Returns:
- Created template
- Since:
- 1.3
-
get
Get a template- Parameters:
templateId
- The ID of the template to fetch.- Returns:
- The template information
- Since:
- 1.3
-
delete
Delete a template- Parameters:
templateId
- The ID of the template to delete.- Since:
- 1.3
-
update
Updates a template- Parameters:
template
- Information to be updated- Returns:
- Updated template
- Since:
- 1.3
-