We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FUNCTIONALITY: Add device to an existing node
ENDPOINT: /add_device
TYPE: POST
URL ARGUMENTS: ?node_id=x
POSSIBLE RESPONSES:
200, 1
400, [errors]
401, 'Invalid Credentials'
500, error message
DATA: Dictionary of a device specified in Protocol.
Example
import requests requests.post('https://localhost:5000/add_device?node_id=1', str(dev), verify=False, auth=('user', 'passwd'))
where dev is defined in example of protocol. Please note in order to use node_id=1, the node with ID = 1 must exist.
dev
node_id=1
ID = 1