When there are many devices, you may need to use tags to mark them, and a single device can be associated with multiple tags.
HTTP Request URL: http(s)://api.thingboot.com/{AppID}/device/tag/?sign={sign}&ts={ts}
About the sign and ts definition
Or
MQTT Publish Topic: api/{AppID}/device/tag
The returned results are also received on the same topic.
Request parameters
Support adding and removing tags for multiple devices at once.
When adding a tag, if the device already has this tag, it will be ignored.
When deleting a tag, if the device does not have this tag, it will also be ignored.
| Name | Required | Type | Description |
|---|---|---|---|
| device | Yes | string | Device ID, supports tags for managing multiple devices at once. For multiple device IDs, please separate them using a delimiter (, or |), such as 1002,1005. |
| add | Yes | string | The tag IDs to be added (associated), multiple IDs are supported and separated by commas, e.g., 5,6,7 |
| del | Yes | string | Tag IDs to be deleted (disassociated), multiple IDs supported, separated by commas, e.g., 8,9,10 |