Add an expiry type (legacy store)
Deprecatedpost
https://api.expiryedge.com/v1/addExpiryTypeeditor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/addExpiryType' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Business License"
}'Response
{
"message": "Expiry type added successfully",
"id": "business_license",
"name": "Business License"
}Legacy: writes to a store the web app no longer reads and is not plan-limited. Use addExpiryTypeNew.
namestringrequired
201
Created.
id is the slugified name.messagestringrequiredidstringrequirednamestringrequiredemail_template_idstring | nullPresent on addExpiryTypeNew.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
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. |
