---
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`

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.net/verkada/apis/api-tokens.md) · [All operations](https://skmtc.net/verkada/apis/api-tokens/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/verkada/api-tokens/revisions/4a79d2d949a6/schema)
