| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TenntsId | query | long | No | |
| ZonesId | query | long | No | |
| ProductsId | query | long | No | |
| HarvestDescription | query | string | No | |
| Quarters | query | int | No | |
| QtyG | query | int | No | |
| Final | query | bool | 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 | |
| HarvestDescription | form | string | Yes | |
| Quarters | form | int | Yes | |
| QtyG | form | int | Yes | |
| Final | form | bool | Yes |
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 /jsv/reply/ProductsHarvestsAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
tenntsId: 0,
zonesId: 0,
productsId: 0,
harvestDescription: String,
quarters: 0,
qtyG: 0,
final: False,
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/jsv
Content-Length: length
{
id: 0,
tenantsId: 0,
zonesId: 0,
productsId: 0,
harvestDescription: String,
quarters: 0,
qtyG: 0,
final: False
}