---
title: "Create a new Sensor."
method: POST
path: "/sensors"
tags: ["Sensors"]
---

# Create a new Sensor.

`POST /sensors`

Create a new Sensor.

## Request body

- SensorCreateJson — unresolved $ref

## Response `201`

The entity was created.

## Other responses

- `400` — The request was malformed.
- `403` — The operation is not allowed by current user.
- `451` — The operation requires acceptance of the terms of use and privacy statement.
- `5XX` — An internal server error occurred.

## Changes

- **2021-12-14** `41dac4f34d9e` — 2 warning, 2 info
  - deleted the `header` request parameter `Accept-Privacy-Statement`
  - deleted the `header` request parameter `Accept-Terms-Of-Use`
  - api tag `Sensors` added
  - api tag `sensors` removed
- **2021-12-07** `9e60f373a1f0` — 2 breaking, 6 warning, 2 info
  - added the new required `header` request parameter `Accept-Privacy-Statement`
  - added the new required `header` request parameter `Accept-Terms-Of-Use`
  - the optional response header `Link` removed for the status `201`
  - the optional response header `Link` removed for the status `400`
  - …6 more

[Change history](https://skmtc.dev/envirocar/apis/envirocar-rest-api/changes/sensors/post.md)

---

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