curl --location -g --request PATCH 'https://api.iotwireless.{region}.amazonaws.com/things/' \
--header 'Content-Type: application/json' \
--data-raw '{
"thingTypeName": "string",
"attributePayload": {
"attributes": {
"property1": "string",
"property2": "string"
},
"merge": true
},
"expectedVersion": 0,
"removeThingType": true
}'
{}
{"attributes":{"string1":"string2"}}
AttributePayload
is merged with the attributes stored in the registry, instead of overwriting them.UpdateThing
with an empty attribute value.UpdateThing
request is rejected with a VersionConflictException
.