V2.1 Delete Firmware


Delete a firmware.


This API is available in EnOS 2.2.0 and above.

Operation Permissions


Ensure that the application has been granted with the invoking permissions. For more information, see Getting API Calling Permissions.

Request Format

POST https://{apigw-address}/connect-service/v2.1/ota-firmwares?action=delete

Request Parameters (URI)

Name

Location(Path/Query)

Mandatory/Optional

Data Type

Description

orgId

Query

Mandatory

String

The organization ID which the asset belongs to. How to get orgId>>

firmwareId

Query

Mandatory

String

The firmware ID.

Error Codes

Code

Message

Description

24404

Firmware not found

The firmware cannot be found.

24604

Firmware cannot be deleted

The firmware cannot be deleted.

Samples

Request Sample

url: https://{apigw-address}/connect-service/v2.1/ota-firmwares?action=delete&orgId=yourOrgId&firmwareId=yourFirmwareId
method: POST

Return Sample

{
    "code":0,
    "msg":"OK",
    "requestId":"3bdf31b4-e357-4d4c-8cf9-a40dc129a407",
    "data":null
}

SDK Samples


You can access the SDK samples for Connection Service on GitHub: