Beta > Assets 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.
Assets (BETA)
This feature has the following endpoints available:
Description | Endpoints |
---|---|
Get all machines | GET /users/{leafUserId}/machines |
Get a machine | GET /users/{leafUserId}/machines/{machineId} |
Get machine files | GET /users/{leafUserId}/machines/{machineId}/files |
Create a machine | POST /users/{leafUserId}/machines |
Update a machine | PATCH /users/{leafUserId}/machines/{machineId} |
Delete a machine | DELETE /users/{leafUserId}/machines/{machineId} |
Get all implements | GET /users/{leafUserId}/implements |
Get an implement | GET /users/{leafUserId}/implements/{implementId} |
Get all operators | GET /users/{leafUserId}/operators |
Get an operator | GET /users/{leafUserId}/operators/{operatorId} |
Get all machines
 GET /users/{leafUserId}/machines
Get the list of machines that are related to a given LeafUserId. Some fields can be sent as query parameters to filter the machines, such as:
Parameter (to filter by) | Values |
---|---|
name | machine name |
provider | JohnDeere , Stara and CNHI |
providerOrganizationId | provider side organization id |
serialNumber | machine serial number |
originType | specify the origin of the machine, must be either USER_CREATED, FILE_POOLED or PROVIDER_POOLED |
createdTime | must match exactly the time of the record creation, ISO 8601 |
beforeCreatedTime | filters for records created before the datetime, ISO 8601 |
afterCreatedTime | filters for records created after the datetime, ISO 8601 |
vin | filters machines by Vehicle Identification Number |
You can also pass some parameters used exclusively for paging through results. They are:
page
, an integer specifying the page being fetched (default is 0)size
, an integer specifying the size of the page (max is 100)sort
, the sorting order of the results; can be multi-value, where the first value to be passed will have preference in ordering over the next ones; you can also specify the order asasc
ordesc
withasc
being the default. Example: id, desc- Valid values for sorting are: id, leafUserId, name, provider, providerOrganizationId, providerMachineId, serialNumber, vin, model, make, category and modelYear
the default value for page size is 20
If the parameters page and size are not set, the endpoint will return 20 results.
Request examples
- cURL
- Python
- JavaScript
Response
Get a machine
 GET /users/{leafUserId}/machines/{machineId}
Get the details of a given machine by its id.
Request examples
- cURL
- Python
- JavaScript
Response
Get machine files
 GET /users/{leafUserId}/machines/{machineId}/files
Get the details of machine operations files given a machine id. Some fields can be sent as query parameters to filter the machine files, such as:
Parameter (to filter by) | Values |
---|---|
leafFileId | UUID |
originType | specify the origin of the machine, must be either USER_CREATED, FILE_POOLED or PROVIDER_POOLED |
createdTime | an ISO 8601 specifying the operation exact created time |
beforeCreatedTime | filters for records created before the datetime, ISO 8601 |
afterCreatedTime | filters for records created after the datetime, ISO 8601 |
startTime | must match exactly the time of the start of the operation, ISO 8601 |
endTime | must match exactly the time of the end of the operation, ISO 8601 |
beforeStartTime | an ISO 8601, returns all operations that started before the specified time |
afterStartTime | an ISO 8601, returns all operations that started after the specified time |
beforeEndTime | an ISO 8601, returns all operations that ended before the specified time |
afterEndTime | an ISO 8601, returns all operations that ended after the specified time |
distanceValue | a double value for the distance |
greaterThanDistanceValue | a double value for the distance, returns all operations that have a distance value greater than the specified distance |
lessThanDistanceValue | a double value for the distance, returns all operations that have a distance value lesser than the specified distance |
distanceUnit | must be "Mile", "mile", "Feet" or "ft" |
You can also pass some parameters used exclusively for paging through results. They are:
page
, an integer specifying the page being fetched (default is 0)size
, an integer specifying the size of the page (max is 100)sort
, the sorting order of the results; can be multi-value, where the first value to be passed will have preference in ordering over the next ones; you can also specify the order asasc
ordesc
withasc
being the default. Example: id, desc- Valid values for sorting are: id, leafUserId, machineId, startTime, endTime, createdTime, leafFileId
Request examples
- cURL
- Python
- JavaScript
Response
Create a machine
 POST /users/{leafUserId}/machines
Creates a machine for a specific LeafUser.
Request body
Request examples
- cURL
- Python
- JavaScript
Response
Update a machine
 PATCH /users/{leafUserId}/machines/{machineId}
Update a machine for a specific LeafUser.
Only machines created by the user can be updated
Machine data obtained from providers cannot be updated
Request body
Request examples
- cURL
- Python
- JavaScript
Response
Delete a machine
 DELETE /users/{leafUserId}/machines/{machineId}
Delete a machine data
Only machines created by the user can be Deleted
Machine data obtained from providers cannot be deleted
Request examples
- cURL
- Python
- JavaScript
Get all implements
 GET /users/{leafUserId}/implements
Get all the implements information based on your leafUserId
. Currently, John Deere and Trimble implements are listed.
Parameter (to filter by) | Values |
---|---|
leafUserId | uuid of one of your users |
provider | JohnDeere or Trimble |
providerImplementId | provider side implement id |
providerOrganizationId | provider side organization id |
createdTime | ISO 8601 date. Returns operations from the createdTime onward |
updatedTime | ISO 8601 date. Returns operations from the updatedTime onward |
name | implement name |
You can also pass some parameters used exclusively for paging through results. They are:
page
, an integer specifying the page being fetched (default is 0)size
, an integer specifying the size of the page (max is 100)sort
, the sorting order of the results; can be multi-value, where the first value to be passed will have preference in ordering over the next ones; you can also specify the order asasc
ordesc
withasc
being the default. Example: id, desc- Valid values for sorting are: id, leafUserId, name, provider, providerOrganizationId, providerImplementId, serialNumber, model, make, category.
the default value for page size is 20
If the parameters page and size are not set, the endpoint will return 20 results.
Request examples
- cURL
- Python
- JavaScript
Response
Get an implement
 GET /users/{leafUserId}/implements/{implementId}
Get the details of a given implement by its id.
Request examples
- cURL
- Python
- JavaScript
Response
Get all operators
 GET /users/{leafUserId}/operators
Get all the operators information based on your leafUserId
. Currently, John Deere operators are listed.
You can also pass some parameters used exclusively for paging through results. They are:
page
, an integer specifying the page being fetched (default is 0)size
, an integer specifying the size of the page (max is 100)
the default value for page size is 20
If the parameters page and size are not set, the endpoint will return 20 results.
Request examples
- cURL
- Python
- JavaScript
Response
Get an operator
 GET /users/{leafUserId}/operators/{operatorId}
Get the details of a given operator by its id.
Request examples
- cURL
- Python
- JavaScript