Schedules: Triggers
The End Of Schedule Triggers in your account. Leads will be moved to "End Of Schedule Actions" when any of the triggers below match.
GET /schedule_triggers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_triggers
Search for Schedule Triggers
List the end-of-schedule triggers for your schedules, optionally filtered by schedule_id. A trigger determines when a lead exits a schedule's regular actions and moves on to its end-of-schedule actions.
Params
| Param name | Description |
|---|---|
|
schedule_id Optional |
Schedule internal id
|
|
ids Optional |
Return records matching these ids.
|
GET /schedule_triggers/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_triggers/new
Returns a new Schedule Trigger
Return a new, unsaved schedule trigger pre-filled with defaults for the given schedule_id.
Params
| Param name | Description |
|---|---|
|
schedule_id Required |
Schedule internal id
|
POST /schedule_triggers
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_triggers
Create a Schedule Trigger
Add a trigger to a schedule that ends the schedule for a lead when the lead matches the given trigger_type, such as elapsed time since a timestamp or a matching token value. When multiple triggers exist, the first one to match a lead determines its exit.
Params
| Param name | Description |
|---|---|
|
schedule_id Required |
Schedule internal id
|
|
name Required |
The trigger name
|
|
trigger_type Required |
The schedule ends when the lead has taken this action.
|
|
expire_minutes Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
expire_timestamp_name Optional Blank value allowed |
Which lead timestamp expire_minutes is measured from, such as created_at, first_queued_at, or first_action_at.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|
|
token_value_ids Optional Blank value allowed |
The first trigger matching the lead will be used.
|
|
attribution_token_value_ids Optional Blank value allowed |
These extra tokens will be applied to leads that exit the schedule through this trigger.
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
GET /schedule_triggers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_triggers/:id
Returns a Schedule Trigger by ID
Retrieve a single schedule trigger by id.
PUT /schedule_triggers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_triggers/:id
Updates a Schedule Trigger by ID
Change a schedule trigger's name, type, expiration timing, token filters, or sort order.
Params
| Param name | Description |
|---|---|
|
schedule_id Optional Blank value allowed |
Schedule internal id
|
|
name Optional |
The trigger name
|
|
trigger_type Optional |
The schedule ends when the lead has taken this action.
|
|
expire_minutes Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
expire_timestamp_name Optional Blank value allowed |
Which lead timestamp expire_minutes is measured from, such as created_at, first_queued_at, or first_action_at.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|
|
token_value_ids Optional Blank value allowed |
The first trigger matching the lead will be used.
|
|
attribution_token_value_ids Optional Blank value allowed |
These extra tokens will be applied to leads that exit the schedule through this trigger.
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
DELETE /schedule_triggers/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/schedule_triggers/:id
Delete a Schedule Trigger by ID
Permanently remove a schedule trigger from its schedule.