All URIs are relative to https://api.lab5e.com
| Method | HTTP request | Description |
|---|---|---|
| assignTargetImage | PATCH /span/collections/{collectionId}/firmware/labeled/{imageId}/assign | BETA: Assign a target image |
| clearFirmwareError | DELETE /span/collections/{collectionId}/devices/{deviceId}/fwerror | Clear FOTA error |
| createFirmware | POST /span/collections/{collectionId}/firmware | Create firmware |
| createLabeledFirmware | POST /span/collections/{collectionId}/firmware/labeled | BETA: Create a labeled firmware image |
| deleteFirmware | DELETE /span/collections/{collectionId}/firmware/{imageId} | Delete firmware |
| deleteLabeledImage | DELETE /span/collections/{collectionId}/firmware/labeled/{imageId} | BETA: Remove a tagged firmware image |
| firmwareUsage | GET /span/collections/{collectionId}/firmware/{imageId}/usage | Firmware usage |
| getImageState | PATCH /span/collections/{collectionId}/devices/{deviceId}/fotastate | BETA: Get state for a single device |
| listFirmware | GET /span/collections/{collectionId}/firmware | List firmware |
| listImageStates | GET /span/collections/{collectionId}/firmware/labeled/states | BETA: List image assignments plus states |
| listImageVersionHistory | PATCH /span/collections/{collectionId}/devices/{deviceId}/fotalog | BETA: List version history for a single device |
| listLabeledFirmware | GET /span/collections/{collectionId}/firmware/labeled | BETA: List the labeled firmware images for a collection |
| retrieveFirmware | GET /span/collections/{collectionId}/firmware/{imageId} | Retrieve firmware |
| retrieveFirmwareStats | GET /span/collections/{collectionId}/firmware/{imageId}/stats | Retrieve firmware statistics |
| updateFirmware | PATCH /span/collections/{existingCollectionId}/firmware/{imageId} | Update firmware |
AssignTargetImageResponse assignTargetImage(collectionId, imageId, label, deviceId)
BETA: Assign a target image
Assign a particular labeled image to a device or a collection
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String imageId = "imageId_example"; // String |
String label = "label_example"; // String |
String deviceId = "deviceId_example"; // String |
try {
AssignTargetImageResponse result = apiInstance.assignTargetImage(collectionId, imageId, label, deviceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#assignTargetImage");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| imageId | String | ||
| label | String | [optional] | |
| deviceId | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
ClearFirmwareErrorResponse clearFirmwareError(collectionId, deviceId)
Clear FOTA error
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String deviceId = "deviceId_example"; // String |
try {
ClearFirmwareErrorResponse result = apiInstance.clearFirmwareError(collectionId, deviceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#clearFirmwareError");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| deviceId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
Firmware createFirmware(collectionId, body)
Create firmware
Firmware images must have unique version numbers and have an unique checksum. The checksum is calculated when the firmware image is uploaded.
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
CreateFirmwareBody body = new CreateFirmwareBody(); // CreateFirmwareBody |
try {
Firmware result = apiInstance.createFirmware(collectionId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#createFirmware");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| body | CreateFirmwareBody |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
CreateLabeledFirmwareResponse createLabeledFirmware(collectionId, version, label, imageRef)
BETA: Create a labeled firmware image
Devices might need several different firmware images, depending on their configuration. Low-power devices usually have just a single firmware image but more complex devices might need several firmware images for their subsystems. The firmware image must be uploaded prior to the call and the returned data structure is included in the request.
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String version = "version_example"; // String |
String label = "label_example"; // String |
String imageRef = "imageRef_example"; // String |
try {
CreateLabeledFirmwareResponse result = apiInstance.createLabeledFirmware(collectionId, version, label, imageRef);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#createLabeledFirmware");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| version | String | [optional] | |
| label | String | [optional] | |
| imageRef | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
Firmware deleteFirmware(collectionId, imageId)
Delete firmware
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String imageId = "imageId_example"; // String |
try {
Firmware result = apiInstance.deleteFirmware(collectionId, imageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#deleteFirmware");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| imageId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
Object deleteLabeledImage(collectionId, imageId)
BETA: Remove a tagged firmware image
Remove a tagged firmware image from the backing store and it's metadata
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String imageId = "imageId_example"; // String |
try {
Object result = apiInstance.deleteLabeledImage(collectionId, imageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#deleteLabeledImage");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| imageId | String |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
FirmwareUsageResponse firmwareUsage(collectionId, imageId)
Firmware usage
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String imageId = "imageId_example"; // String |
try {
FirmwareUsageResponse result = apiInstance.firmwareUsage(collectionId, imageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#firmwareUsage");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| imageId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
GetImageStateResponse getImageState(collectionId, deviceId)
BETA: Get state for a single device
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String deviceId = "deviceId_example"; // String |
try {
GetImageStateResponse result = apiInstance.getImageState(collectionId, deviceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#getImageState");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| deviceId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
ListFirmwareResponse listFirmware(collectionId)
List firmware
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
try {
ListFirmwareResponse result = apiInstance.listFirmware(collectionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#listFirmware");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
ListImageStatesResponse listImageStates(collectionId)
BETA: List image assignments plus states
List the status for the labeled firmware images in the collection
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
try {
ListImageStatesResponse result = apiInstance.listImageStates(collectionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#listImageStates");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
ListImageVersionHistoryResponse listImageVersionHistory(collectionId, deviceId)
BETA: List version history for a single device
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String deviceId = "deviceId_example"; // String |
try {
ListImageVersionHistoryResponse result = apiInstance.listImageVersionHistory(collectionId, deviceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#listImageVersionHistory");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| deviceId | String |
ListImageVersionHistoryResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
ListLabeledFirmwareResponse listLabeledFirmware(collectionId)
BETA: List the labeled firmware images for a collection
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
try {
ListLabeledFirmwareResponse result = apiInstance.listLabeledFirmware(collectionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#listLabeledFirmware");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
Firmware retrieveFirmware(collectionId, imageId)
Retrieve firmware
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String imageId = "imageId_example"; // String |
try {
Firmware result = apiInstance.retrieveFirmware(collectionId, imageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#retrieveFirmware");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| imageId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
FirmwareStats retrieveFirmwareStats(collectionId, imageId)
Retrieve firmware statistics
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String collectionId = "collectionId_example"; // String |
String imageId = "imageId_example"; // String |
try {
FirmwareStats result = apiInstance.retrieveFirmwareStats(collectionId, imageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#retrieveFirmwareStats");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| collectionId | String | ||
| imageId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |
Firmware updateFirmware(existingCollectionId, imageId, body)
Update firmware
Only the version and tags fields can be updated. The other fields will be ignored.
// Import classes:
import com.lab5e.ApiClient;
import com.lab5e.ApiException;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.FotaApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lab5e.com");
// Configure API key authorization: APIToken
ApiKeyAuth APIToken = (ApiKeyAuth) defaultClient.getAuthentication("APIToken");
APIToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIToken.setApiKeyPrefix("Token");
FotaApi apiInstance = new FotaApi(defaultClient);
String existingCollectionId = "existingCollectionId_example"; // String |
String imageId = "imageId_example"; // String |
UpdateFirmwareBody body = new UpdateFirmwareBody(); // UpdateFirmwareBody |
try {
Firmware result = apiInstance.updateFirmware(existingCollectionId, imageId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FotaApi#updateFirmware");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| existingCollectionId | String | ||
| imageId | String | ||
| body | UpdateFirmwareBody |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A successful response. | - |
| 201 | It's created. | - |
| 400 | The request has an error. | - |
| 401 | You can't touch this | - |
| 404 | Couldn't find the resource. | - |
| 409 | There's a resource conflict here. | - |
| 500 | I'm sorry. We are broken | - |
| 0 | An unexpected error response. | - |