Add an expiry type (legacy store)

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

Body parameters

application/json
  • namestringrequired

Returns

201
Created. id is the slugified name.
  • messagestringrequired
  • idstringrequired
  • namestringrequired
  • email_template_idstring | null
    Present on addExpiryTypeNew.

Errors

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.