PUT v3/lots/{id}.json
Updates a planting area
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
LotExternalModelName | Description | Type | Additional information |
---|---|---|---|
Name |
name |
string |
Required |
Acres |
acres |
decimal number |
Required Range: inclusive between 0 and 1.79769313486232E+308 |
Coordinates |
lat/lng in string format |
string |
Required |
ObstructionDepth |
(Optional) obstruction depth (ft). If not specified, CropManage assumes there is no obstruction. |
decimal number |
Range: inclusive between 0 and 4 |
Request Formats
application/json, text/json, text/html
Sample:
{ "Name": "sample string 1", "Acres": 2.0, "Coordinates": "sample string 3", "ObstructionDepth": 1.0 }
application/xml, text/xml
Sample:
<LotExternalModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>sample string 1</Name> <Acres>2</Acres> <Coordinates>sample string 3</Coordinates> <ObstructionDepth>1</ObstructionDepth> </LotExternalModel>
Response Information
Resource Description
RanchLotUpdateModelName | Description | Type | Additional information |
---|---|---|---|
Lot |
ranch lot model |
RanchLotJSON |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{ "Lot": { "RanchId": 1, "Acres": 2.0, "ObstructionDepth": 1.0, "CreateDT": "2023-09-24T06:22:14.4485178-07:00", "LastUpdateDT": "2023-09-24T06:22:14.4642098-07:00", "Deleted": true, "Coordinates": "sample string 6", "Id": 7, "Name": "sample string 8" } }
application/xml, text/xml
Sample:
<RanchLotUpdateModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Lot> <Id>7</Id> <Name>sample string 8</Name> <RanchId>1</RanchId> <Acres>2</Acres> <ObstructionDepth>1</ObstructionDepth> <CreateDT>2023-09-24T06:22:14.4485178-07:00</CreateDT> <LastUpdateDT>2023-09-24T06:22:14.4642098-07:00</LastUpdateDT> <Deleted>true</Deleted> <Coordinates>sample string 6</Coordinates> </Lot> </RanchLotUpdateModel>