| POST | /{Workspace}/Track/{UserId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Workspace | path | string | No | |
| UserId | path | string | No | |
| TrackId | body | string | No | |
| Items | body | List<string> | No | |
| Stops | body | List<StopItem> | No | |
| Spd | body | List<RedlineItem> | No | |
| Address | body | Address | No | |
| Distance | body | double | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PT | form | string | No | |
| Int | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PT | form | string | No | |
| Int | form | int | No | |
| Avg | form | double | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Street | form | string | No | |
| Unit | form | string | No | |
| City | form | string | No | |
| State | form | string | No | |
| Zip | form | string | No | |
| ContactTitle | form | string | No | |
| ContactName | form | string | No | |
| ContactPhone | form | string | No | |
| ContactEmail | form | string | No | |
| Location | form | Location | No | |
| SiteName | form | string | No | |
| GeocodeFailed | form | bool | No | |
| Country | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| y | form | double | No | |
| x | form | double | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/Track/{UserId} HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Workspace: String,
UserId: String,
TrackId: String,
Items:
[
String
],
Stops:
[
{
PT: String,
Int: 0
}
],
Spd:
[
{
PT: String,
Int: 0,
Avg: 0
}
],
Address:
{
Street: String,
Unit: String,
City: String,
State: String,
Zip: String,
ContactTitle: String,
ContactName: String,
ContactPhone: String,
ContactEmail: String,
Location:
{
y: 0,
x: 0
},
SiteName: String,
GeocodeFailed: False,
Country: String
},
Distance: 0
}