Hiboo Connect
The following endpoints allow you to share your equipment data with other organizations, and manage the sharing process.
Returns all Sharing instances that have been created
Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here
The number of items to skip before starting to collect the result set
10The number of items to return
10Filter by sharing status
in_progressPossible values: Filter by asset ID
1successful operation
It can be a contract reference for instance
contract-4242-2024Date from which the sharing of data should start serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ).
2030-01-01T08:00:00ZDate when the sharing of data should stop serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). Equipment data will be shared as long as it is empty, so you can set it to null if the end date is unsure
2030-12-31T18:00:00ZCurrent status of the sharing:
- pending: The beneficiary user has not yet created an organization in Hiboo
- planned: The sharing will be active ("in progress" status) as soon as the start date is reached
- in_progress: The sharing is in progress and the beneficiary users have access to the assets data stream
- stopped: The sharing has been stopped before the initially scheduled end date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
- completed: The sharing has ended on the scheduled date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
All the equipment that you wish to share, use Hiboo's ids
[1,2,3]Recipient's email address
john.doe@example.comDefines if the notification is enabled on the sharing creation/start actions
Invalid input or missing parameters
Unable to authenticate the token
GET /v2/fleet/sharings?offset=1&limit=1 HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
{
"reference": "contract-4242-2024",
"startDate": "2030-01-01T08:00:00Z",
"endDate": "2030-12-31T18:00:00Z",
"status": "pending",
"dataPacksCodes": [
"essential",
"vehicle_conditions",
"energy_and_fuel",
"activity",
"others",
"usage_hours",
"fault_codes"
],
"assetIds": [
1,
2,
3
],
"recipient": "john.doe@example.com",
"notificationEnabled": true,
"properties": {
"customer": "Customer Name",
"site": "Site Name",
"contract": "XK-123456",
"purchaseOrder": "0986-XX-60",
"project": "ABC-123-ZX-456",
"accountNumber": "1234"
}
}This endpoint will allow you to create a new instance of Sharing. It can be a contract for instance.
Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here
It can be a contract reference for instance
contract-4242-2024Date from which the sharing of data should start serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). The date must not be before one rolling year.
2030-01-01T08:00:00ZDate when the sharing of data should stop serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). Equipment data will be shared as long as it is empty, set it to null if the end date is unsure. When set, it must be at least 1 hour after the start date.
2030-12-31T18:00:00ZAll the equipment that you wish to share, use Hiboo's ids
1Recipient's email address. The local part of the email address can only contain alphanumeric characters and the characters _ ' + - and .
john.doe@example.comIf false, the recipient will not be notified when the sharing is created or started
Successful operation
It can be a contract reference for instance
contract-4242-2024Date from which the sharing of data should start serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ).
2030-01-01T08:00:00ZDate when the sharing of data should stop serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). Equipment data will be shared as long as it is empty, so you can set it to null if the end date is unsure
2030-12-31T18:00:00ZCurrent status of the sharing:
- pending: The beneficiary user has not yet created an organization in Hiboo
- planned: The sharing will be active ("in progress" status) as soon as the start date is reached
- in_progress: The sharing is in progress and the beneficiary users have access to the assets data stream
- stopped: The sharing has been stopped before the initially scheduled end date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
- completed: The sharing has ended on the scheduled date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
All the equipment that you wish to share, use Hiboo's ids
[1,2,3]Recipient's email address
john.doe@example.comDefines if the notification is enabled on the sharing creation/start actions
Invalid input or missing parameters (e.g. the end date is less than 1 hour after the start date)
Unable to authenticate the token
Insufficient permissions to access the resource
Unique reference is already used by another sharing
POST /v2/fleet/sharings HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 382
{
"reference": "contract-4242-2024",
"startDate": "2030-01-01T08:00:00Z",
"endDate": "2030-12-31T18:00:00Z",
"excludedDataPackCodes": [
"fault_codes"
],
"assetIds": [
1
],
"recipient": "john.doe@example.com",
"notificationEnabled": true,
"properties": {
"customer": "Customer Name",
"site": "Site Name",
"contract": "XK-123456",
"purchaseOrder": "0986-XX-60",
"project": "ABC-123-ZX-456",
"accountNumber": "1234"
}
}{
"reference": "contract-4242-2024",
"startDate": "2030-01-01T08:00:00Z",
"endDate": "2030-12-31T18:00:00Z",
"status": "pending",
"dataPacksCodes": [
"essential",
"vehicle_conditions",
"energy_and_fuel",
"activity",
"others",
"usage_hours",
"fault_codes"
],
"assetIds": [
1,
2,
3
],
"recipient": "john.doe@example.com",
"notificationEnabled": true,
"properties": {
"customer": "Customer Name",
"site": "Site Name",
"contract": "XK-123456",
"purchaseOrder": "0986-XX-60",
"project": "ABC-123-ZX-456",
"accountNumber": "1234"
}
}Returns a single sharing by reference
Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here
The reference you defined when creating the sharing
contract-4242-2024Successful operation
It can be a contract reference for instance
contract-4242-2024Date from which the sharing of data should start serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ).
2030-01-01T08:00:00ZDate when the sharing of data should stop serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). Equipment data will be shared as long as it is empty, so you can set it to null if the end date is unsure
2030-12-31T18:00:00ZCurrent status of the sharing:
- pending: The beneficiary user has not yet created an organization in Hiboo
- planned: The sharing will be active ("in progress" status) as soon as the start date is reached
- in_progress: The sharing is in progress and the beneficiary users have access to the assets data stream
- stopped: The sharing has been stopped before the initially scheduled end date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
- completed: The sharing has ended on the scheduled date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
All the equipment that you wish to share, use Hiboo's ids
[1,2,3]Recipient's email address
john.doe@example.comDefines if the notification is enabled on the sharing creation/start actions
Unable to authenticate the token
Insufficient permissions to access the resource
Resource not found
GET /v2/fleet/sharings/{reference} HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
{
"reference": "contract-4242-2024",
"startDate": "2030-01-01T08:00:00Z",
"endDate": "2030-12-31T18:00:00Z",
"status": "pending",
"dataPacksCodes": [
"essential",
"vehicle_conditions",
"energy_and_fuel",
"activity",
"others",
"usage_hours",
"fault_codes"
],
"assetIds": [
1,
2,
3
],
"recipient": "john.doe@example.com",
"notificationEnabled": true,
"properties": {
"customer": "Customer Name",
"site": "Site Name",
"contract": "XK-123456",
"purchaseOrder": "0986-XX-60",
"project": "ABC-123-ZX-456",
"accountNumber": "1234"
}
}It totally deletes a Sharing as it never existed. This will only work if the Sharing has not started yet.
Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here
The reference you defined when creating the Sharing
contract-4242-2024Sharing was successfully deleted
No content
Unable to authenticate the token
Insufficient permissions to access the resource
Resource not found
Sharing cannot be deleted because it has already started or ended
DELETE /v2/fleet/sharings/{reference} HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
No content
Update an existing sharing by reference
Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here
The reference you defined when creating the Sharing
contract-4242-2024It can be a contract reference for instance
contract-4242-2024Date from which the sharing of data should start serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). The date must not be before one rolling year.
2030-01-01T08:00:00ZDate when the sharing of data should stop serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). Equipment data will be shared as long as it is empty, so you can set it to null if the end date is unsure. When set, the resulting sharing (after merging with the existing dates) must last at least 1 hour.
2030-12-31T18:00:00ZSuccessful operation
It can be a contract reference for instance
contract-4242-2024Date from which the sharing of data should start serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ).
2030-01-01T08:00:00ZDate when the sharing of data should stop serialized as an ISO8601 string with a timezone (YYYY-MM-DDTHH:mm:ssZ). Equipment data will be shared as long as it is empty, so you can set it to null if the end date is unsure
2030-12-31T18:00:00ZCurrent status of the sharing:
- pending: The beneficiary user has not yet created an organization in Hiboo
- planned: The sharing will be active ("in progress" status) as soon as the start date is reached
- in_progress: The sharing is in progress and the beneficiary users have access to the assets data stream
- stopped: The sharing has been stopped before the initially scheduled end date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
- completed: The sharing has ended on the scheduled date. Beneficiary users don't have access to the assets current data stream anymore, but can still access the data history
All the equipment that you wish to share, use Hiboo's ids
[1,2,3]Recipient's email address
john.doe@example.comDefines if the notification is enabled on the sharing creation/start actions
Missing parameters or invalid parameters (e.g. the end date is less than 1 hour after the start date)
Unable to authenticate the token
Insufficient permissions to access the resource
Resource not found
Sharing has already started
PATCH /v2/fleet/sharings/{reference} HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 305
{
"reference": "contract-4242-2024",
"startDate": "2030-01-01T08:00:00Z",
"endDate": "2030-12-31T18:00:00Z",
"excludedDataPackCodes": [
"fault_codes"
],
"properties": {
"customer": "Customer Name",
"site": "Site Name",
"contract": "XK-123456",
"purchaseOrder": "0986-XX-60",
"project": "ABC-123-ZX-456",
"accountNumber": "1234"
}
}{
"reference": "contract-4242-2024",
"startDate": "2030-01-01T08:00:00Z",
"endDate": "2030-12-31T18:00:00Z",
"status": "pending",
"dataPacksCodes": [
"essential",
"vehicle_conditions",
"energy_and_fuel",
"activity",
"others",
"usage_hours",
"fault_codes"
],
"assetIds": [
1,
2,
3
],
"recipient": "john.doe@example.com",
"notificationEnabled": true,
"properties": {
"customer": "Customer Name",
"site": "Site Name",
"contract": "XK-123456",
"purchaseOrder": "0986-XX-60",
"project": "ABC-123-ZX-456",
"accountNumber": "1234"
}
}This endpoint will stop the sharing of data for the specified reference. It will not delete the sharing, but it will stop the data sharing process.
Generate a JWT when you log in. Use it in your following requests in the header as x-access-token: your-token-here
The reference you defined when creating the Sharing
contract-4242-2024successful operation
No content
Unable to authenticate the token
Insufficient permissions to access the resource
Resource not found
if the Sharing is not in progress
DELETE /v2/fleet/sharings/{reference}/in-progress HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?