---
title: "Set Object Position MQTT Config"
method: POST
path: "/cameras/v1/analytics/object_position_mqtt"
tags: ["Analytics"]
---

# Set Object Position MQTT Config

`POST /cameras/v1/analytics/object_position_mqtt`

## Request

- Base URL: `https://api.verkada.com`
- URL: `https://api.verkada.com/cameras/v1/analytics/object_position_mqtt`
- Auth: one of:
  - API key in header `x-verkada-auth`
  - API key in header `x-api-key`

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.

## Request body

- OccupancyTrendsMQTTConfigSetRequestV1
  - `broker_cert` string, required: A CA signed cert for broker to be used for TLS connection.
  - `broker_host_port` string, required: The host and port for MQTT server. The host could be an IP address or hostname. Port 443 is recommended, and only 443, 123, 53 are supported.
  - `camera_id` string, required: The unique identifier of the camera.
  - `client_password` string: The optional password for the server.
  - `client_username` string: The optional username for the server.

## Response `200`

OK

- OccupancyTrendsMQTTConfigSetResponseV1
  - `broker_cert` string: The cert set in config.
  - `broker_host_port` string: The host and port set in config.
  - `camera_id` string: The unique identifier of the camera.
  - `client_password` string: The password set in config.
  - `client_username` string: The username set in config.

---

[API](https://skmtc.dev/verkada/apis/camera-api.md) - [All operations](https://skmtc.dev/verkada/apis/camera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verkada/apis/camera-api/revisions/26cbfa5870e4?raw)
