Add an expiry type
post
https://api.expiryedge.com/v1/addExpiryTypeNeweditor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/addExpiryTypeNew' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Business License",
"email_template_id": null
}'Response
{
"message": "Expiry type added successfully",
"id": "et_5Gm1rT",
"name": "Business License",
"email_template_id": null
}Counts against the plan's categories limit (400 with limitReached: true). Setting email_template_id requires the
custom email templates plan feature (402).
namestringrequiredMust be unique in the organization (exact match).email_template_idstring | nullEmail template used for reminders of this type; null = organization default.
201
Created.
messagestringrequiredidstringrequirednamestringrequiredemail_template_idstring | nullPresent on addExpiryTypeNew.
400 | Missing name, duplicate name, unknown email template, or plan categories limit reached ( limitReached: true). |
401 | Missing, expired or invalid bearer token. |
402 | The organization's plan does not include custom email templates. |
403 | Authenticated, but your role or organization does not allow this action. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
