Release : All releases
You can update the Alternate by updating the name alias. Once the change is made the name will be pushed to Data aggregator
Update name alias -Updates the name alias of a specified device.
URL: http://hostname:8181/pc/center/webservice/devices/{idName}/{idValue}/aliasName/{newAliasName}
where:
- {idName} is one of the property name values returned by the get id names method of this web service.
- {idValue} is a value for the property denoted by idName.
- {newAliasName} is the new alias to use.
HTTP method = PUT
Returns true if the operation succeeded.
Following is the curl command to update :
curl -X PUT -v -u admin http://hostname:8181/pc/center/webservice/devices/deviceItemId/PORTAL-ITEMID-OF-DEVICE/aliasName/NEWALIAS