Sets the MQTT config for a particular camera.

Object Position Events from the camera will be published to the MQTT broker specified in the MQTT config.

**Object Position Event Schema

ParameterTypeDescription
camera_idIntegerThe unique identifier of the camera.
objectsArray of ObjectsAn array of objects that were detected.
obj_idIntegerThe unique identifier of the detected object.
detectionsArray of DetectionsAn array of instances where the objects were detected.
timestampIntegerThe time where the object was detected.
Formatted as a Unix timestamp in milliseconds.
x1, y1IntegerThe coordinates of the upper-left corner of the detected object.
Measured as the relative distance in pixels form the upper-left corner of the image.
x2, y2IntegerThe coordinates of the bottom-right corner of the detected object.
Measured as the relative distance in pixels form the bottom-right corner of the image.

Example of Object Position Event

{
  "camera_id": "9863f032-f354-4bf6-94b1-e9ae84406809",
  "objects": [
    {
      "obj_id": 165879446013500,
      "type": "person",
      "detections": [
        {
          "timestamp": 1658794462235,
          "x1": 0.2589378356933594,
          "y1": 0.34261420369148254,
          "x2": 0.34516018629074097,
          "y2": 0.6407618522644043
        }
      ]
    },
    {
      "obj_id": 165879445343501,
      "type": "person",
      "detections": [
        {
          "timestamp": 1658794462235,
          "x1": 0.19411784410476685,
          "y1": 0.3762255311012268,
          "x2": 0.27725690603256226,
          "y2": 0.667906641960144
        }
      ]
    }
  ]
}
Language
Authentication
Header
Click Try It! to start a request and see the response here!