---
title: "Update sensor template"
method: PUT
path: "/api/v2/devices/sensor-templates"
tags: ["Sensors"]
---

# Update sensor template

`PUT /api/v2/devices/sensor-templates`

## Request

- Base URL: `https://api.chirpwireless.io`
- URL: `https://api.chirpwireless.io/api/v2/devices/sensor-templates`
- Auth: API key in header `X-API-Key` and API key in header `X-Organization-Id`

Update an existing sensor template.

**Required scope:** `sensors:write`

## Path parameters

- `id` string, required

## Query parameters

- `organizationId` string, required

## Request body

- object
  - `description` string
  - `keyNameId` string, required
  - `sensorType` string
  - `unitMeasurementId` string
  - `valueType` string

## Response `200`

OK

- object
  - `createdAt` string
  - `description` string
  - `id` string
  - `isSystem` boolean
  - `keyName` string
  - `keyNameId` string
  - `organizationId` string
  - `sensorType` string
  - `unitMeasurementId` string
  - `updatedAt` string
  - `valueType` string

## Other responses

- `401`: Missing or invalid API key
- `403`: Insufficient permissions (missing required scope)

---

[API](https://skmtc.dev/chirpwireless/apis/chirp-public-api.md) · [All operations](https://skmtc.dev/chirpwireless/apis/chirp-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chirpwireless/apis/chirp-public-api/revisions/0414f3e239ff?raw)
