Rename an expiry type or set its email template

posthttps://api.expiryedge.com/v1/updateExpiryType
editor 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.

Body parameters

application/json
  • typeIdstringrequired
  • newNamestring
  • email_template_idstring | null
    Omit to leave unchanged; null or empty string resets to the organization default.

Returns

200
Updated.
  • messagestring
  • updated_expiriesinteger
    Expiries whose type was renamed (0 when only the template changed).
  • email_template_idstring | null

Errors

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.