GET v2/ranches/{ranchGuid}/permissions.{ext}
Retrieves a user's ranch planting permissions.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ranchGuid |
Ranch GUID |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
RanchPlantingsPermissions| Name | Description | Type | Additional information |
|---|---|---|---|
| RanchName | string |
None. |
|
| RanchExternalGuid | globally unique identifier |
None. |
|
| UserIsRanchOwner | boolean |
None. |
|
| UserCanEditPlanting | boolean |
None. |
|
| UserCanEditFertilizationEvent | boolean |
None. |
|
| UserCanEditIrrigationEvent | boolean |
None. |
|
| UserCanEditSoilSampleEvent | boolean |
None. |
|
| UserCanEditRanch | boolean |
None. |
|
| UserCanDataExport | boolean |
None. |
|
| HasActivePlantings | boolean |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{
"RanchName": "sample string 1",
"RanchExternalGuid": "97478a93-303d-405c-81bb-3c7d14d446bd",
"UserIsRanchOwner": true,
"UserCanEditPlanting": true,
"UserCanEditFertilizationEvent": true,
"UserCanEditIrrigationEvent": true,
"UserCanEditSoilSampleEvent": true,
"UserCanEditRanch": true,
"UserCanDataExport": true,
"HasActivePlantings": true
}
application/xml, text/xml
Sample:
<RanchPlantingsPermissions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RanchName>sample string 1</RanchName> <RanchExternalGuid>97478a93-303d-405c-81bb-3c7d14d446bd</RanchExternalGuid> <UserIsRanchOwner>true</UserIsRanchOwner> <UserCanEditPlanting>true</UserCanEditPlanting> <UserCanEditFertilizationEvent>true</UserCanEditFertilizationEvent> <UserCanEditIrrigationEvent>true</UserCanEditIrrigationEvent> <UserCanEditSoilSampleEvent>true</UserCanEditSoilSampleEvent> <UserCanEditRanch>true</UserCanEditRanch> <UserCanDataExport>true</UserCanDataExport> <HasActivePlantings>true</HasActivePlantings> </RanchPlantingsPermissions>