Select the default email template
post
https://api.expiryedge.com/v1/emailTemplateSelecteditor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/emailTemplateSelect' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"templateId": "et_Qw81zd",
"type": "expiry_reminder"
}'Response
{
"selected": {
"expiry_reminder": "et_Qw81zd"
}
}Sets the organization default template for a type. templateId: null reverts to the built-in default (allowed on any plan); selecting a custom template requires the plan feature (402).
templateIdstring | nullTemplate id, or null / empty to deselect.typestringDefaults toexpiry_reminder.Allowedexpiry_reminder
200
The selection after the change.
selectedmap of stringTemplate type -> selected template id after the change.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
402 | The organization plan does not include custom email templates. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | The record does not exist or is not in your organization. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
