---
title: "Update a single resource. In case you want update BigDecimal attribute. It's necessary include also decimal point. Otherwise attribute will be converted as int."
method: PUT
path: "/devices/{deviceId}/{resourcePath}"
tags: ["Devices"]
---

# Update a single resource. In case you want update BigDecimal attribute. It's necessary include also decimal point. Otherwise attribute will be converted as int.

`PUT /devices/{deviceId}/{resourcePath}`

## Path parameters

- `deviceId` string, uuid, required
- `resourcePath` string, required

## Query parameters

- `interface` string

## Headers

- `Correlation-ID` string

## Request body

- ResourceRepresentationUpdate

## Response `200`

Device

- ResourceRepresentation
  - `rt` string[] — Resources types
  - `if` string[] — Supported interfaces

## Other responses

- `401` — Not authorized
- `404` — Device or resource was not found
- `500` — An error occured when processing your request

## Changes

- **2020-04-11** `562192db9767` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/plgd-dev/apis/plgd-http-gateway/changes/devices/:deviceId/:resourcePath/put.md)

---

[API](https://skmtc.dev/plgd-dev/apis/plgd-http-gateway.md) · [All operations](https://skmtc.dev/plgd-dev/apis/plgd-http-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/plgd-dev/plgd-http-gateway/revisions/562192db9767/schema)
