| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TenantsId | query | long | No | |
| VarietiesId | query | long | No | |
| Description | query | string | No | |
| Diseases | query | string | No | |
| Solutions | query | string | No | |
| AdditionalInfo | query | string | No | |
| ResponseStatus | query | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | Yes | |
| TenantsId | form | long | Yes | |
| ZonesId | form | long | Yes | |
| VarietiesId | form | long | Yes | |
| Description | form | string | Yes | |
| Diseases | form | string | No | |
| Solutions | form | string | No | |
| AdditionalInfo | 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 /csv/reply/PestsAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"tenantsId":0,"varietiesId":0,"description":"String","diseases":"String","solutions":"String","additionalInfo":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"id":0,"tenantsId":0,"zonesId":0,"varietiesId":0,"description":"String","diseases":"String","solutions":"String","additionalInfo":"String"}