Holidays
Dates per state on which outbound calling is blocked, such as state-recognized holidays.
GET /state_holidays
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_holidays
List State Holiday records.
List the state holiday compliance rules configured for your account. Superuser access is required.
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_holidays/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_holidays/new
Build State Holiday with defaults.
Return a new, unsaved state holiday rule pre-filled with defaults.
Params
| Param name | Description |
|---|---|
|
states Optional Blank value allowed |
States
|
|
holiday_dates Optional Blank value allowed |
Holiday Dates
|
|
name Optional Blank value allowed |
Name
|
POST /state_holidays
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_holidays
Create State Holiday.
Create a rule that blocks outbound calls to the listed states on the specified holiday dates.
Params
| Param name | Description |
|---|---|
|
states Optional Blank value allowed |
States
|
|
holiday_dates Optional Blank value allowed |
Holiday Dates
|
|
name Optional Blank value allowed |
Name
|
GET /state_holidays/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_holidays/:id
Get State Holiday by id.
Retrieve a single state holiday rule by id.
PUT /state_holidays/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_holidays/:id
Update State Holiday by id.
Change the states or holiday dates on an existing rule. System-provided template rules cannot be modified.
Params
| Param name | Description |
|---|---|
|
states Optional Blank value allowed |
States
|
|
holiday_dates Optional Blank value allowed |
Holiday Dates
|
|
name Optional Blank value allowed |
Name
|
DELETE /state_holidays/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/state_holidays/:id
Destroy State Holiday by id.
Permanently delete a state holiday rule. System-provided template rules cannot be deleted.