Skip to content

Update a twin

Request

Security
oauth2
Path
idstringrequired

Id of the twin

Headers
If-Matchnull or string

Optional If-Match header value (RFC 7232). When supplied, the twin will only be patched if its current ETag matches; otherwise a 412 Precondition Failed response is returned.

Bodyapplication/jsonrequired

List of Patch Operations.

Array [
operationTypestring(OperationType)
Enum:"Add""Remove""Replace""Move""Copy""Test""Invalid"
pathnull or string
opnull or string
fromnull or string
valueany
]
[ { "operationType": "Add", "path": null, "op": null, "from": null, "value": null } ]

Responses

Bodyapplication/json
typenull or string
titlenull or string
statusnull or integer, (int32)
detailnull or string
instancenull or string
errorsobject
Response
{ "type": null, "title": null, "status": null, "detail": null, "instance": null, "errors": { "property1": [ … ], "property2": [ … ] }, "property1": null, "property2": null }