Supported Formats

json

Examples

curl -H "Content-Type: application/json" -X PUT -d '{"user_traffic_source_id":"new_user_ts_id","first_name":"new name"}' https://[your-subdomain].trackdrive.net/api/v1/traffic_sources/:id?auth_token=[your-auth-token]

Response Example

{
  "status" : 200,
  "errors" : {},
  "traffic_source" : {
    "id" : 10015594,
    "created_at" : "2018-04-09T21:39:14.308+00:00",
    "updated_at" : "2018-04-09T21:39:14.308+00:00",
    "user_updated_at" : "2018-04-09T21:39:14.308+00:00",
    "user_traffic_source_id" : "1005",
    "first_name" : "Mary",
    "last_name" : "Smith",
    "company_name" : "ABC Email Marketing",
    "name" : "1005 - Mary Smith ABC Email Marketing",
    "number_limit" : null,
    "last_call_at" : "2019-05-19T07:20:15.000+00:00",
    "calls_count" : 2,
    "recent_calls_count" : 1
  },
  "metadata" : {
    "root" : "traffic_source"
  }
}

Params

Param name
Description
auth_token
optional

Authorize requests using your token. Get it from your profile: trackdrive.net/profile/edit

  • Must be String

user_traffic_source_id
optional

Your external ID assigned to this traffic source.

  • Must be String

first_name
optional

First Name

  • Must be String

last_name
optional

First Name

  • Must be String

company_name
optional

Company Name

  • Must be String

number_limit
optional

How many numbers can team members purchase for this Traffic Source?

  • Must be a decimal number.

grant_team_offer_id
optional , nil allowed

Give this Traffic Source access to this Offer.

revoke_team_offer_id
optional , nil allowed

Remove access to this Offer for this Traffic Source.

generate_team
optional

Grant access to this Traffic Source, and calls that it publishes.

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

team_users_emails
optional , nil allowed

The selected users will recieve an email invitation to collaborate on your company.

  • Must be an array of emails. EG: ["john-smith@gmail.com", "example@domain.com"]

team_offer_ids
optional , nil allowed

Team members will be able to buy numbers for these offers, and view calls published to them by their Traffic Source.

  • Must be a valid array of integers. Each integer ID must be a valid foreign key reference to an Offer. Refer to: /api/docs/1.0/offers