|  Developer
Updated on November 20, 2021

hub.device.name.set

Connection type:
Permissions:

  • Renames device.
Edit
Field Description
_id
device id
name
new device's name
Edit
Edit
Broadcast Description
informs about device state changed
Edit
Edit
				
					{
    "method": "hub.device.name.set",
    "id": "_ID_",
    "params": {
        "_id": "5cf0dc8c7f000068d223e889",
        "name": "<new device name>"
    }
}				
			
Edit
				
					{
    "api": "1.0",
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Code Message Data
-32600
Bad request, name is empty
rpc.params.empty.name
-32600
Bad request, name does not exist
rpc.params.notfound.name