| POST,OPTIONS | /v1/territory/agreementneeds |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AgreementID | 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 .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/territory/agreementneeds HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"AgreementID":0,"EquipmentIDs":[0]}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}]}