- Import exported template descriptors and versions
Management
Content
Syntax
Rendering Context
List template descriptors
Create template descriptor
Delete template descriptor
Get template descriptor
Update template descriptor
List template versions for descriptor
List all template versions (Deprecated)
Create template version
Export all template descriptors and versions
Get template version
Update template version
Activate template version
Render template version preview
Render template version
List context vars for template version
List all template versions (v2)
Delete template version (no longer supported)
Import exported template...
Import exported template descriptors and template versions for a company. The exported data should come from the /communicator/templates/export endpoint.
The import will create new template descriptor if a matching one does not exist and will create new template versions if a matching one does not exist. This is often used to "promote" templates from a testing environment to a production environment.
Security
oauth2(Required scopes: communicator.template:create) or bearerAuth or apiKeyHeader
POST
- oauth2
- bearerAuth
- apiKeyHeader
curl -i -X POST \
'https://sandboxapi.peach.finance/api/communicator/templates/import?companyId=string&allowActivate=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '[
null
]'