Rename an expiry type or set its email template
post
https://api.expiryedge.com/v1/updateExpiryTypeeditor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/updateExpiryType' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"typeId": "et_5Gm1rT",
"newName": "State Business License"
}'Response
{
"message": "Expiry type updated successfully",
"updated_expiries": 12,
"email_template_id": null
}Send newName and/or email_template_id (null clears it). A rename also updates type on every expiry using it.
typeIdstringrequirednewNamestringemail_template_idstring | nullOmit to leave unchanged; null or empty string resets to the organization default.
200
Updated.
messagestringupdated_expiriesintegerExpiries whosetypewas renamed (0 when only the template changed).email_template_idstring | null
400 | The request is missing required fields or contains invalid values. |
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. |
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. |
