| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TenntsId | query | long | No | |
| ZonesId | query | long | No | |
| ProductsId | query | long | No | |
| Units | query | string | No | |
| Description | query | string | No | |
| Weight | query | int | No | |
| ResponseStatus | query | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | Yes | |
| TenantsId | form | long | Yes | |
| ZonesId | form | long | Yes | |
| ProductsId | form | long | Yes | |
| Units | form | string | Yes | |
| Description | form | string | Yes | |
| Weight | form | int | Yes |
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/ProductsUnitsAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"tenntsId":0,"zonesId":0,"productsId":0,"units":"String","description":"String","weight":0,"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,"productsId":0,"units":"String","description":"String","weight":0}