| PUT | /growplans_results/{Id} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | long | Yes | |
| GrowplansBoxesId | body | long | Yes | |
| PlantDate | body | DateTime? | No | |
| Grid | body | string | No | |
| Height | body | double? | No | |
| PlantPerSquare | body | double? | No | |
| CropsCylindersId | body | long | Yes | |
| Age | body | int | No | |
| MaxAge | body | int | No | |
| GrowplansVarietiesId | body | long | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| GrowplansBoxesId | form | long | No | |
| PlantDate | form | DateTime? | No | |
| Grid | form | string | No | |
| Height | form | double? | No | |
| PlantPerSquare | form | double? | No | |
| CropsCylindersId | form | long | No | |
| Age | form | int | No | |
| MaxAge | form | int | No | |
| GrowplansVarietiesId | form | long | No | |
| ResponseStatus | form | ResponseStatus | 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.
PUT /growplans_results/{Id} HTTP/1.1
Host: api.sfgtec.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
growplansBoxesId: 0,
plantDate: 0001-01-01,
grid: String,
height: 0,
plantPerSquare: 0,
cropsCylindersId: 0,
age: 0,
maxAge: 0,
growplansVarietiesId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
growplansBoxesId: 0,
plantDate: 0001-01-01,
grid: String,
height: 0,
plantPerSquare: 0,
cropsCylindersId: 0,
age: 0,
maxAge: 0,
growplansVarietiesId: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}