curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" "https://[your-subdomain].trackdrive.com/api/v1/buyer_fleets?page=1&order=created_at&"
| Param name |
Description
Validations
|
|---|---|
|
page Optional |
Return the next page of results. Validations:
|
|
per_page Optional |
How many results to return per page. The default is 25. Validations:
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500 Validations:
|
|
fulltext Optional |
Search for any record that matches this text Validations:
|
|
time_zone Optional |
Date ranges will be parsed using this time zone. Validations:
|
|
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:
Validations:
|
|
root Optional |
Pass Validations:
|
|
order_dir Optional |
Sort results in ascending or descending order. Validations:
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X POST -d '{"name":"Acme Fleet", "user_fleet_id": "acme_corp"}' https://[your-subdomain].trackdrive.com/api/v1/buyer_fleets
| Param name |
Description
Validations
|
|---|---|
|
name Required |
The name of the buyer fleet. Validations:
|
|
description Optional |
A description for this buyer fleet. Validations:
|
|
user_fleet_id Required |
A unique identifier for this fleet. Only lowercase letters, numbers, and underscores are allowed. This ID is used in system tokens to identify fleet membership. Validations:
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X PUT -d '{"name":"Updated Fleet"}' https://[your-subdomain].trackdrive.com/api/v1/buyer_fleets/123456
| Param name |
Description
Validations
|
|---|---|
|
name Optional |
The name of the buyer fleet. Validations:
|
|
description Optional |
A description for this buyer fleet. Validations:
|
|
user_fleet_id Optional |
A unique identifier for this fleet. Only lowercase letters, numbers, and underscores are allowed. This ID is used in system tokens to identify fleet membership. Validations:
|
curl -H "Authorization: Basic BASE64_ENCODED_PUBLIC_KEY_AND_PRIVATE_KEY" -H "Content-Type: application/json" -X DELETE https://[your-subdomain].trackdrive.com/api/v1/buyer_fleets/:id