---
title: "POST /v2/floorplans/{plan_id}/sensors/"
method: POST
path: "/v2/floorplans/{plan_id}/sensors/"
tags: ["Floorplans"]
---

# POST /v2/floorplans/{plan_id}/sensors/

`POST /v2/floorplans/{plan_id}/sensors/`

List / Create view.

## Request body

- PlanSensorSerializerV2
  - `id` integer
  - `sensor_type` 'entry' | 'oa' | 'waffle'
  - `sensor_function` 'oalr' | 'oa' | 'oasr' | 'oe' | 'entry' | 'waffle'
  - `sensor_hardware_type` 'oa1b' | 'oa1' | 's5b' | 's5' | 'w1'
  - `locked` boolean
  - `sensor_serial_number` string, nullable
  - `centroid_from_origin_x_meters` number, nullable
  - `centroid_from_origin_y_meters` number, nullable
  - `rotation` number, nullable
  - `height_meters` number, nullable
  - `diagnostic_info` string
  - `status` string
  - `last_heartbeat` string
  - `notes` string
  - `plan_sensor_index` integer
  - `cad_id` string
  - `bounding_box_filter` 'none' | 'cloud' | 'device'
  - `doorway_id` string, nullable
  - `clipped_fov` string
  - `doorway_clipped_fov` string
  - `noise_polygons` string

## Response `201`

Created

- OptionalPlanSensorSerializer
  - `id` integer
  - `sensor_type` 'entry' | 'oa' | 'waffle'
  - `sensor_function` 'oalr' | 'oa' | 'oasr' | 'oe' | 'entry' | 'waffle'
  - `sensor_hardware_type` 'oa1b' | 'oa1' | 's5b' | 's5' | 'w1'
  - `locked` boolean
  - `sensor_serial_number` string, nullable
  - `centroid_from_origin_x_meters` number, nullable
  - `centroid_from_origin_y_meters` number, nullable
  - `rotation` number, nullable
  - `height_meters` number, nullable
  - `diagnostic_info` string
  - `status` string
  - `last_heartbeat` string
  - `notes` string
  - `plan_sensor_index` integer
  - `cad_id` string
  - `bounding_box_filter` 'none' | 'cloud' | 'device'
  - `doorway_id` string, nullable
  - `clipped_fov` string
  - `doorway_clipped_fov` string
  - `noise_polygons` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

[API](https://skmtc.dev/density/apis/your-project-api.md) · [All operations](https://skmtc.dev/density/apis/your-project-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/density/your-project-api/revisions/eab10fe035e6/schema)
