Create an anniversary date trigger
POST /automations/{automationUuid}/automation_triggers/aniversary_date
/automations/{automationUuid}/automation_triggers/aniversary_dateStarts the automation every year on the day and month stored in a date custom field of the contact, such as a birthday or a customer-since date, from the start of that day, or a few days or weeks beforehand.
When to use: For birthday messages or yearly anniversaries of a date you keep in a custom field.
When not to use: For a one-off date, such as an event or a contract expiry, use create_trigger_specific_date. For the anniversary of the day the contact subscribed, use create_trigger_suscription_date. To welcome someone the day they subscribe, use create_trigger_contact_subscribed.
Side effects: The day is the contact's own time zone when it has one, otherwise the audience's. Contacts born on 29 February are matched on 28 February in years that are not leap years. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact is never started again within 6 months of its previous run, and enters again at all only if workflow_repeat is true.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
The new AutomationTrigger resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_triggers/aniversary_date" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "list_field": "/entity/1", "delay": true, "delay_value": 0, "delay_unit": "day", "workflow_repeat": true }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "automation": "/entity/1", "trigger_type": "trigger.admin.manual", "active": true, "workflow_repeat": true, "trigger": null, "count_automation_queues": 0, "count_completed_automation_queues": 0, "count_queued_automation_queues": 0, "count_canceled_automation_queues": 0}