Add an expiry type (legacy store)

Veraltet
posthttps://api.expiryedge.com/v1/addExpiryType
editor or admin60/minJede Methode
Anfrage
curl -X POST 'https://api.expiryedge.com/v1/addExpiryType' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Business License"
}'
Antwort
{
  "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-Parameter

application/json
  • namestringerforderlich

Rückgabe

201
Created. id is the slugified name.
  • messagestringerforderlich
  • idstringerforderlich
  • namestringerforderlich
  • email_template_idstring | null
    Present on addExpiryTypeNew.

Fehler

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.