Add an expiry type

posthttps://api.expiryedge.com/v1/addExpiryTypeNew
editor or admin60/minJede Methode
Anfrage
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
}'
Antwort
{
  "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).

Body-Parameter

application/json
  • namestringerforderlich
    Must be unique in the organization (exact match).
  • email_template_idstring | null
    Email template used for reminders of this type; null = organization default.

Rückgabe

201
Created.
  • messagestringerforderlich
  • idstringerforderlich
  • namestringerforderlich
  • email_template_idstring | null
    Present on addExpiryTypeNew.

Fehler

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.