Traffic Source Rate Limits

Manage per-traffic-source rate limit entries.

GET /traffic_source_rate_limits

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/traffic_source_rate_limits

List all traffic source rate limits.

Lists the per-traffic-source rate limit entries defined under a rate limiter group, ordered by their configured sortable order.

Params

Param name Description
ids
Optional

Return records matching these ids.

  • Must be an array of decimal values. EG: [0, 1, 2, 3]

page
Optional

Return the next page of results.

  • Must be a number.

per_page
Optional

How many results to return per page. The default is 25.

  • Must be a number.

created_at_to
Optional

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

created_at_from
Optional

Date formatted like 2016-01-01 12:25:15 -0500

  • Must be a String

fulltext
Optional

Search for any record that matches this text

  • Must be a String

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:

  • id
  • legacy_id
  • type
  • uuid
  • created_at
  • updated_at
  • deleted_at
  • user_updated_at
  • routes_show_path
  • routes_edit_path
  • external_record_id
  • company_id
  • traffic_source_rate_limiter_id
  • traffic_source_id
  • rate_limit_per_minute
  • rate_limit_per_hour
  • rate_limit_per_day
  • sortable_order
  • traffic_source_name
  • user_traffic_source_id
  • Must be a String

root
Optional

Pass root=false to return results without a root node and metadata.
For example:
GET /api/v1/calls?root=false will return [call1, call2, call3]
While:
GET /api/v1/calls will return {calls: [call1, call2, call3], metadata: {}}

  • Must be a boolean value: 1, true, yes, on, 0, false, no, off

GET /traffic_source_rate_limits/new

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/traffic_source_rate_limits/new

Build a new traffic source rate limit.

Returns a blank rate limit entry for the given traffic_source_rate_limiter_id, without saving it.

Params

Param name Description
traffic_source_rate_limiter_id
Required

The parent rate limiter group ID.

  • Must be a number.

traffic_source_id
Optional

The traffic source ID.

  • Must be a number.

POST /traffic_source_rate_limits

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/traffic_source_rate_limits

Create a traffic source rate limit.

Creates a rate limit entry that caps how many pings a specific traffic source may send per minute, hour, and/or day within a parent rate limiter group. A traffic source may only have one entry per rate limiter.

Params

Param name Description
traffic_source_rate_limiter_id
Required

The parent rate limiter group ID.

  • Must be a number.

traffic_source_id
Required

The traffic source ID.

  • Must be a number.

rate_limit_per_minute
Optional

Maximum pings per minute for this traffic source.

  • Must be a number.

rate_limit_per_hour
Optional

Maximum pings per hour for this traffic source.

  • Must be a number.

rate_limit_per_day
Optional

Maximum pings per day for this traffic source.

  • Must be a number.

GET /traffic_source_rate_limits/:id

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/traffic_source_rate_limits/:id

Show a traffic source rate limit.

Fetches a single traffic source rate limit entry by id.

PUT /traffic_source_rate_limits/:id

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/traffic_source_rate_limits/:id

Update a traffic source rate limit.

Updates a traffic source rate limit entry's per-minute, per-hour, or per-day caps.

Params

Param name Description
traffic_source_rate_limiter_id
Optional Blank value allowed

The parent rate limiter group ID.

  • Must be a number.

traffic_source_id
Optional

The traffic source ID.

  • Must be a number.

rate_limit_per_minute
Optional

Maximum pings per minute for this traffic source.

  • Must be a number.

rate_limit_per_hour
Optional

Maximum pings per hour for this traffic source.

  • Must be a number.

rate_limit_per_day
Optional

Maximum pings per day for this traffic source.

  • Must be a number.

DELETE /traffic_source_rate_limits/:id

Authorization Required
https://[your-subdomain].trackdrive.com/api/v1/traffic_source_rate_limits/:id

Delete a traffic source rate limit.

Deletes a traffic source rate limit entry by id, removing that traffic source's override from the rate limiter group.