set_sequence_recurring_enrollment
Schedule recurring audience enrollment for a manual-trigger sequence daily, weekly, or monthly in a chosen timezone, with optional end dates and pause or remove controls.
Instructions
Make a manual-trigger sequence recurring: re-enroll an audience every day, on chosen weekdays, or on chosen days of the month (1-31 and/or the last day) at a time in an IANA timezone, for end-of-month updates, balance reminders or daily sends that are not tied to an event. Each run is an audience enrollment run (source recurring, visible in list_sequence_audience_enrollments): contacts who finished an earlier run enter again, contacts still in the sequence are skipped, one_time sequences never re-enroll anyone, and unsubscribed or bounced contacts never join. Nothing is enrolled until the first scheduled time; occurrences while the sequence is paused, disabled or closed are skipped, and a run that cannot start within 6 hours is skipped. Days past the end of a shorter month run on its last day. Requires trigger manual and audienceAutoEnroll off. Saving replaces any existing schedule; pass remove true to delete it. Returns the stored schedule, a description and upcomingRuns so you can confirm it reads as intended.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sequenceId": "<sequenceId>"
},
"name": "set_sequence_recurring_enrollment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | 24-hour run time "HH:MM", e.g. "10:00". Required unless remove is true. | |
| endsAt | No | Optional ISO 8601 date-time after which no run starts, e.g. the end of the last day in the schedule's timezone. Omit for no end date (saving replaces the schedule, so omitting removes an earlier end date). | |
| remove | No | Pass true to delete the schedule; other fields are then ignored. Runs already started and contacts already enrolled are not affected. | |
| enabled | No | Defaults to true. Pass false to keep the schedule but stop its runs. | |
| audience | No | Who to enroll at each run, re-evaluated every time (same shape as enroll_sequence_audience). Required unless remove is true. | |
| timezone | No | IANA timezone the time is read in, e.g. "Europe/London" or "UTC"; runs follow daylight saving. Required unless remove is true. | |
| weekdays | No | For weekly: days to run, 0 (Sunday) to 6 (Saturday). [1,2,3,4,5] is every weekday. | |
| companyId | No | Company ID. If not provided, uses the currently selected company. | |
| frequency | No | How often to run. Required unless remove is true. weekly needs weekdays; monthly needs monthDays. | |
| monthDays | No | For monthly: days of the month to run, 1 to 31, e.g. [1, 2]. Combine with lastDayOfMonth for the end of the month. | |
| sequenceId | Yes | Sequence ID. | |
| enrollmentMode | No | Who enters at each run: unlimited (everyone who matches; people still inside are skipped) or one_time (only people who never entered). Sets the sequence's enrollment mode, which also applies to enrollments started by hand. Omit to keep the current mode. | |
| lastDayOfMonth | No | For monthly: also run on the last day of every month (28th to 31st). Can be the only day. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Additional context about the result. | |
| items | No | Fallback array wrapper used only when a tool returns a bare array. | |
| value | No | Fallback object wrapper used only when a tool returns a non-object value. | |
| message | No | What was saved and when the first run is. | |
| success | No | Whether the Sequenzy operation succeeded. | |
| warnings | No | Non-fatal cautions about content, permissions, or follow-up actions. | |
| description | No | Readable summary of the schedule, or null. | |
| upcomingRuns | No | Next run times as ISO 8601 instants; empty while switched off or removed. | |
| enrollmentMode | No | Who enters at each run: unlimited (everyone who matches) or one_time (only people who never entered). The sequence's enrollment mode. | |
| recurringEnrollment | No | The stored schedule (same shape as get_sequence_recurring_enrollment), or null after remove. |