---
title: "PATCH /v2/{org_id}/spaces/{space_id}/sensors/"
method: PATCH
path: "/v2/{org_id}/spaces/{space_id}/sensors/"
tags: ["Spaces - By Org"]
---

# PATCH /v2/{org_id}/spaces/{space_id}/sensors/

`PATCH /v2/{org_id}/spaces/{space_id}/sensors/`

Django will happily PATCH in an empty request and vaporize a database object.

## Request body

- SpaceSensor
  - `serial_number` string, required
  - `device_function` 'entry' | 'oa' | 'oalr' | 'oasr' | 'oe' | 'waffle', nullable
  - `sensor_type` 'ob1' | 'r56t' | 'r60' | 's5' | 'w1' | 'virtual'

## Response `200`

Updated

- OptionalSpaceSensorSerializer
  - `serial_number` string
  - `device_function` 'entry' | 'oa' | 'oalr' | 'oasr' | 'oe' | 'waffle', nullable
  - `sensor_type` 'ob1' | 'r56t' | 'r60' | 's5' | 'w1' | 'virtual'

## 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)
