Add Controllers
Push the controllers list through this to create controllers in the platform.
Endpoint : POST /api/v3/iot/data/push
Request body
- Sample
- Schema
{ "payload": { "agent": "agent-name", "data": [ { "controller": { "name": "controller-name-1" }, "controllerType": 0 }, { "controller": { "name": "controller-name-2" }, "controllerType": 0 } ], "publishType": 7 }}
{ "$schema": "http://json-schema.org/draft-07/schema#", "properties": { "payload": { "type": "object", "properties": { "agent": { "type": "string", "description": "Name of the agent" }, "data": { "type": "array", "items": [ { "type": "object", "properties": { "controller": { "type": "string", "description": "controller object of the specific controller type" } }, "required": ["controller", "controllerType"] } ] }, "controllerType": { "type": "integer", "description": "Controller Type enum", "const": 0 }, "publishType": { "type": "integer", "description": "Publish Type enum", "const": 7 } }, "required": ["agent", "data", "controllerType", "publishType"] } }, "required": ["payload"]}