| POST,OPTIONS | /v1/territory/crewequipment |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CrewID | body | int | No | |
| EquipmentIDs | body | List<int> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Territories | form | List<Territory> | No | |
| Properties | form | List<TerritoryPropertyRow> | No | |
| CrewEquipment | form | List<CrewEquipmentRow> | No | |
| AgreementNeeds | form | List<AgreementNeedRow> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TerritoryID | form | int | No | |
| TerritoryUID | form | string | No | |
| Name | form | string | No | |
| Color | form | string | No | |
| ZipCsv | form | string | No | |
| CrewID | form | int? | No | |
| CrewName | form | string | No | |
| Active | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TerritoryID | form | int | No | |
| AgreementID | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CrewID | form | int | No | |
| EquipmentID | form | int | No | |
| EquipmentName | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AgreementID | form | int | No | |
| EquipmentID | form | int | No | |
| EquipmentName | form | string | 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 /v1/territory/crewequipment HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CrewID: 0,
EquipmentIDs:
[
0
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Territories:
[
{
TerritoryID: 0,
TerritoryUID: String,
Name: String,
Color: String,
ZipCsv: String,
CrewID: 0,
CrewName: String,
Active: False
}
],
Properties:
[
{
TerritoryID: 0,
AgreementID: 0
}
],
CrewEquipment:
[
{
CrewID: 0,
EquipmentID: 0,
EquipmentName: String
}
],
AgreementNeeds:
[
{
AgreementID: 0,
EquipmentID: 0,
EquipmentName: String
}
]
}