Updates thing info
PUThttps://apis.<domain>/iot/things/:thingId
Authorization: http
name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
Update is performed by replacing the current resource data with values provided in a request payload. Note that the thing's type and ID cannot be changed.
Authorization Action:
core:things:update
Request
Path Parameters
thingId uuidrequired
Unique thing identifier.
- application/json
Body
required
Arbitrary, object-encoded thing's data.
name string
Free-form thing name.
metadata object
Responses
- 200
- 400
- 401
- 404
- 415
- 500
Thing updated.
Bad request.
Unauthorized.
Thing not found.
Missing or unsupported content type.
Unexpected server error.
- application/json
- Schema
Schema
- string byte
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://apis.<domain>/iot/things/:thingId' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"metadata": {}
}'