Call Times
Per-state allowed calling hours for each day of the week, used to block outbound calls outside those windows.
GET /state_business_hours
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_business_hours
List State Call Time records.
List the State Call Time rules in your account, which restrict outbound calling and dialing windows by US state.
Params
| Param name | Description |
|---|---|
|
ids Optional |
Return records matching these ids.
|
|
page Optional |
Return the next page of results.
|
|
per_page Optional |
How many results to return per page. The default is 25.
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
fulltext Optional |
Search for any record that matches this text
|
|
time_zone Optional |
Date ranges will be parsed using this time zone.
|
|
columns Optional |
Specify the columns you would like returned by the API for a given resource.
Limiting the columns can significantly increase API response time since only the requested data will be processed.
columns=uuid,number,created_at
Must be any combination of:
|
|
root Optional |
Pass
|
GET /state_business_hours/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_business_hours/new
Build State Call Time with defaults.
Return a blank State Call Time rule populated with default attribute values, useful for building a create form.
Params
| Param name | Description |
|---|---|
|
states Optional Blank value allowed |
States
|
|
name Optional Blank value allowed |
Name
|
|
monday_open_at Optional Blank value allowed |
Monday Open At
|
|
monday_close_at Optional Blank value allowed |
Monday Close At
|
|
tuesday_open_at Optional Blank value allowed |
Tuesday Open At
|
|
tuesday_close_at Optional Blank value allowed |
Tuesday Close At
|
|
wednesday_open_at Optional Blank value allowed |
Wednesday Open At
|
|
wednesday_close_at Optional Blank value allowed |
Wednesday Close At
|
|
thursday_open_at Optional Blank value allowed |
Thursday Open At
|
|
thursday_close_at Optional Blank value allowed |
Thursday Close At
|
|
friday_open_at Optional Blank value allowed |
Friday Open At
|
|
friday_close_at Optional Blank value allowed |
Friday Close At
|
|
saturday_open_at Optional Blank value allowed |
Saturday Open At
|
|
saturday_close_at Optional Blank value allowed |
Saturday Close At
|
|
sunday_open_at Optional Blank value allowed |
Sunday Open At
|
|
sunday_close_at Optional Blank value allowed |
Sunday Close At
|
|
monday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Monday, regardless of the open/close times.
|
|
tuesday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Tuesday, regardless of the open/close times.
|
|
wednesday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Wednesday, regardless of the open/close times.
|
|
thursday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Thursday, regardless of the open/close times.
|
|
friday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Friday, regardless of the open/close times.
|
|
saturday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Saturday, regardless of the open/close times.
|
|
sunday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Sunday, regardless of the open/close times.
|
POST /state_business_hours
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_business_hours
Create State Call Time.
Create a State Call Time rule defining the allowed calling hours for one or more states, each day of the week.
Params
| Param name | Description |
|---|---|
|
states Optional Blank value allowed |
States
|
|
name Optional Blank value allowed |
Name
|
|
monday_open_at Optional Blank value allowed |
Monday Open At
|
|
monday_close_at Optional Blank value allowed |
Monday Close At
|
|
tuesday_open_at Optional Blank value allowed |
Tuesday Open At
|
|
tuesday_close_at Optional Blank value allowed |
Tuesday Close At
|
|
wednesday_open_at Optional Blank value allowed |
Wednesday Open At
|
|
wednesday_close_at Optional Blank value allowed |
Wednesday Close At
|
|
thursday_open_at Optional Blank value allowed |
Thursday Open At
|
|
thursday_close_at Optional Blank value allowed |
Thursday Close At
|
|
friday_open_at Optional Blank value allowed |
Friday Open At
|
|
friday_close_at Optional Blank value allowed |
Friday Close At
|
|
saturday_open_at Optional Blank value allowed |
Saturday Open At
|
|
saturday_close_at Optional Blank value allowed |
Saturday Close At
|
|
sunday_open_at Optional Blank value allowed |
Sunday Open At
|
|
sunday_close_at Optional Blank value allowed |
Sunday Close At
|
|
monday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Monday, regardless of the open/close times.
|
|
tuesday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Tuesday, regardless of the open/close times.
|
|
wednesday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Wednesday, regardless of the open/close times.
|
|
thursday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Thursday, regardless of the open/close times.
|
|
friday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Friday, regardless of the open/close times.
|
|
saturday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Saturday, regardless of the open/close times.
|
|
sunday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Sunday, regardless of the open/close times.
|
GET /state_business_hours/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_business_hours/:id
Get State Call Time by id.
Get the details of a single State Call Time rule by id.
PUT /state_business_hours/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_business_hours/:id
Update State Call Time by id.
Update the states or daily open/close times on a State Call Time rule. System-provided rules (those with a template_id) cannot be modified through this endpoint.
Params
| Param name | Description |
|---|---|
|
states Optional Blank value allowed |
States
|
|
name Optional Blank value allowed |
Name
|
|
monday_open_at Optional Blank value allowed |
Monday Open At
|
|
monday_close_at Optional Blank value allowed |
Monday Close At
|
|
tuesday_open_at Optional Blank value allowed |
Tuesday Open At
|
|
tuesday_close_at Optional Blank value allowed |
Tuesday Close At
|
|
wednesday_open_at Optional Blank value allowed |
Wednesday Open At
|
|
wednesday_close_at Optional Blank value allowed |
Wednesday Close At
|
|
thursday_open_at Optional Blank value allowed |
Thursday Open At
|
|
thursday_close_at Optional Blank value allowed |
Thursday Close At
|
|
friday_open_at Optional Blank value allowed |
Friday Open At
|
|
friday_close_at Optional Blank value allowed |
Friday Close At
|
|
saturday_open_at Optional Blank value allowed |
Saturday Open At
|
|
saturday_close_at Optional Blank value allowed |
Saturday Close At
|
|
sunday_open_at Optional Blank value allowed |
Sunday Open At
|
|
sunday_close_at Optional Blank value allowed |
Sunday Close At
|
|
monday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Monday, regardless of the open/close times.
|
|
tuesday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Tuesday, regardless of the open/close times.
|
|
wednesday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Wednesday, regardless of the open/close times.
|
|
thursday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Thursday, regardless of the open/close times.
|
|
friday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Friday, regardless of the open/close times.
|
|
saturday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Saturday, regardless of the open/close times.
|
|
sunday_closed Optional Blank value allowed |
When true, outbound calls to this state are blocked all day Sunday, regardless of the open/close times.
|
DELETE /state_business_hours/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_business_hours/:id
Destroy State Call Time by id.
Permanently delete a State Call Time rule. System-provided rules (those with a template_id) cannot be deleted through this endpoint.