Beta > Prescriptions Endpoints
About
All HTTP methods should be prepended by this service's endpoint:
See below the REST resources and their endpoints available in this service.
Prescription (BETA)
Prescription Resources
This feature has the following endpoints available:
Description | Endpoints |
---|---|
Upload prescription to Raven Slingshot | POST /users/{leafUserId}/ravenSlingshot |
List prescriptions from Raven Slingshot | GET /users/{leafUserId}/ravenSlingshot |
Lists prescriptions from John Deere | GET /users/{leafUserId}/johnDeere |
Upload prescription to John Deere | POST /users/{leafUserId}/johnDeere |
Download prescription from John Deere | GET /users/{leafUserId}/johnDeere/download |
Upload prescription to CNHi | POST /users/{leafUserId}/cnhi |
List prescriptions from CNHi | GET /users/{leafUserId}/cnhi |
Upload prescription to Climate FieldView | POST /users/{leafUserId}/climateFieldView |
Upload prescription to Raven Slingshot
 POST /users/{leafUserId}/ravenSlingshot
Upload a prescription using the Raven Slingshot credentials of the LeafUserId.
The file to be uploaded needs to be .zip and contain one of each of the following file extension: shp, dbf, shx; and all files must have the same name. The zip file cannot contain subfolders.
Example:
A zip file named âprescription_rx_mapâ, containing the following files:
- prescription_rx_map.shp
- prescription_rx_map.dbf
- prescription_rx_map.shx
- cURL
- Python
- JavaScript
Response
The response is json with the id of the file uploaded to the provider.
List prescriptions from Raven Slingshot
 GET /users/{leafUserId}/ravenSlingshot
List the existing prescriptions available in the provider.
- cURL
- Python
- JavaScript
Response
A json array of prescriptions available in this provider
Upload prescription to John Deere
 POST /users/{leafUserId}/johnDeere
Upload a prescription using the John Deere credentials of the LeafUserId.
There is a required request parameter called organizationId for this endpoint to work. This property should be the id of the organization at JohnDeere.
The file to be uploaded needs to be .zip and have a folder called "Rx" containing one of each of the following file extension: shp, dbf, shx; and all files must have the same name. The zip file cannot contain subfolders.
Example:
A .zip file named âprescription_rx_mapâ, having a parent folder called "Rx", containing the following files:
- Rx/
- prescription_rx_map.shp
- prescription_rx_map.dbf
- prescription_rx_map.shx
- cURL
- Python
- JavaScript
Response
The response is json with the id of the file uploaded to the provider.
List prescriptions from John Deere
 GET /users/{leafUserId}/johnDeere
List the existing prescriptions available in the provider.
There is a required request parameter called organizationId for this endpoint to work. This property should be the id of the organization at JohnDeere.
- cURL
- Python
- JavaScript
Response
A json array of prescriptions available in this provider.
Download prescription from John Deere
 GET /users/{leafUserId}/johnDeere/download
Download a prescription related to a file ID using the LeafUserId's John Deere credentials. This file ID is relative to the one available from the John Deere side.
- cURL
- Python
- JavaScript
Response
The response is json with url to download.
Upload prescription to CNHi
 POST /users/{leafUserId}/cnhi
Upload a prescription using the CNHi credentials of the LeafUserId.
You can get the company Id from the grower endpoints using the property providerOrganizationId
.
The file to be uploaded must be a .zip and contain each of the following file extension: shp, dbf and shx. All files must have the same name. The zip file cannot contain subfolders.
Example:
A .zip file named âprescription_mapâ containing the following files:
- prescription_map.shp
- prescription_map.dbf
- prescription_map.shx
- cURL
- Python
- JavaScript
Response
The response is json with the id of the file uploaded to the provider.
List prescriptions from CNHi
 GET /users/{leafUserId}/cnhi
List the existing prescriptions available in the provider.
You can get the company Id from the grower endpoints using the property providerOrganizationId
.
- cURL
- Python
- JavaScript
Response
A json array of prescriptions available in this provider.
Upload prescription to Climate FieldView
 POST /users/{leafUserId}/climateFieldView
Upload a prescription using the Climate FieldView credentials of the LeafUserId.
The file to be uploaded needs to be .zip and contain one of each of the following file extension: shp, dbf, shx; and all files must have the same name. The zip file cannot contain subfolders.
Example:
A zip file named âprescription_rx_mapâ, containing the following files:
- prescription_rx_map.shp
- prescription_rx_map.dbf
- prescription_rx_map.shx
- cURL
- Python
- JavaScript
Response
The response is json with the id of the file uploaded to the provider.