[Core API] Message Template Endpoints
Message templates (previously referred to as 'responses' or 'canned answers') and message template folders now expose a number of additional endpoints. These endpoints make it possible to bulk upload or sync message templates from any external service.
New Endpoints
Message Templates:
GET /message_templatesGET /teams/:team_id/message_templatesGET /teammates/:teammate_id/message_templatesPOST /message_templatesPOST /teams/:team_id/message_templatesPOST /teammates/:teammate_id/message_templatesPOST /message_template_folders/:message_template_id/message_templatesPATCH /message_templates/:message_template_idDELETE /message_templates/:message_template_id
Message Template Folders:
GET /message_template_foldersGET /teams/:team_id/message_template_foldersGET /teammates/:teammate_id/message_template_foldersPOST /message_template_foldersPOST /teams/:team_id/message_template_foldersPOST /teammates/:teammate_id/message_template_foldersPOST /message_template_folders/:message_template_id/message_template_foldersPATCH /message_template_folders/:message_template_folder_idDELETE /message_template_folders/:message_template_folder_id
Deprecated Endpoints
As part of these updates the following endpoints are now deprecated and will no longer be supported on January, 31st 2022:
GET /responsesGET /teams/team_id/responsesGET /teammates/teammate_id/responsesGET /responses/response_id
The functionality for each of these endpoints is still available, but has been renamed from responses -> message_templates. So, for example, if message templates were previously fetched from /teams/team_id/responses, they should now be fetched from /teams/team_id/message_templates. Renaming your endpoints is the only necessary change because the IDs of the templates will not be changing.
