Enable Device¶
Enable a device.
Operation Permissions¶
| Required Authorization | Required Operation Permission | 
|---|---|
| Device Management | Full Access | 
Request Format¶
POST https://{apigw-address}/connect-service/v2.1/devices?action=enable
Request Parameters (URI)¶
Note
Use one of the following methods to specify the device to be enabled:
- Include - assetIdin the request
- Include - productKey+- deviceKeyin the request
| 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>> | 
| assetId | Query | Optional (See Note above) | String | The asset ID. How to get assetId>> | 
| productKey | Query | Optional (See Note above) | String | The product key. To be used with  | 
| deviceKey | Query | Optional (See Note above) | String | The device key. To be used with  | 
Error Codes¶
| Code | Message | Description | 
|---|---|---|
| 99500 | 
 | 
 | 
Samples¶
Request Sample¶
url: https://{apigw-address}/connect-service/v2.1/devices?action=enable&orgId=yourOrgId&assetId=yourAssetId
method: POST
Return Sample¶
{
    "code": 0,
    "msg": "OK",
    "requestId": "06dd8ea3-cb9e-4628-8f93-d36c416bcd3a",
    "data": null
}