---
title: "Observe state of device resource via websocket"
method: GET
path: "/ws/devices/{deviceId}/{resourcePath}"
tags: ["Observation"]
---

# Observe state of device resource via websocket

`GET /ws/devices/{deviceId}/{resourcePath}`

Start observation of single device resource via websocket. When observation start, user is notified with first event which represent actual state of resource

## Path parameters

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

## Headers

- `Correlation-ID` string

## Other responses

- `101` — Websocket connection was established
- `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/ws/devices/:deviceId/:resourcePath/get.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)
