API/Cloud Core Protocol/setDeviceAddress

From ickStream Wiki
Jump to: navigation, search

Update the current IP-address for a specific device owned by current user


	"jsonrpc": 2.0,
	"id": < A unique number used to correlate requests with responses, see JSON-RPC specification for more information >,
	"method": "setDeviceAddress",
	"params": {
		"devciceId": <Optional, id of the device to update, if not specified the device which 
                              was authenticated in the HTTP Authorization header will be updated >
		"address": <The new local IP-address of the device>


	"jsonrpc": 2.0,
	"id": < The request identity >,
	"result": {
		"id": < Unique identity for this device >,
		"name": < The user friendly identity of this device >,
		"model": < Model identification for this device >,
		"address": < New local IP-address of this device >,
		"publicAddress": < Current public IP-address of this device (may not be accessible due to firewalls) >,

Some important things to note:

  • id: The device id is not the same as the access token which is used in the Authorization header, the access token can only be retrieved by registering the device with the addDeviceWithHardwareId method.
Personal tools