PUT v3/ranches/{ranchGuid}.json
Updates ranch information
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ranchGuid | globally unique identifier |
Required |
Body Parameters
RanchUpdateParams| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Ranch name. Must be no more than 255 characters in length |
string |
Required |
| Coordinates |
Ranch coordinates. E.g. "34.813328, -113.541914" |
string |
Required |
| Acres |
Optional field, used for usage statistics |
decimal number |
Range: inclusive between 0 and 2147483647 |
| SpatialETAvailable |
True if California. False otherwise |
boolean |
None. |
| WeatherAPI_Id | integer |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{
"Name": "sample string 1",
"Coordinates": "sample string 2",
"Acres": 1.0,
"SpatialETAvailable": true,
"WeatherAPI_Id": 4
}
application/xml, text/xml
Sample:
<RanchUpdateParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>sample string 1</Name> <Coordinates>sample string 2</Coordinates> <Acres>1</Acres> <SpatialETAvailable>true</SpatialETAvailable> <WeatherAPI_Id>4</WeatherAPI_Id> </RanchUpdateParams>
Response Information
Resource Description
SuccessResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
Response message |
string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{
"Message": "sample string 1"
}
application/xml, text/xml
Sample:
<SuccessResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Message>sample string 1</Message> </SuccessResponse>