asset-controller
Unassign asset from edge (unassignAssetFromEdge)
Clears assignment of the asset to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove asset (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove asset locally.
delete/api/edge/{edgeId}/asset/{assetId}
Path parameters
edgeIdstring required
A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
assetIdstring required
A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "ASSET"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"customerId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "CUSTOMER"
},
"name": "Empire State Building",
"type": "Building",
"label": "NY Building",
"assetProfileId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "ASSET_PROFILE"
},
"additionalInfo": {}
}