HTTP Request URL: http(s)://api.thingboot.com/{AppID}/tag/create/?sign={sign}&ts={ts} About the sign and ts definition
Or
MQTT Publish Topic: api/{AppID}/tag/create The returned results are also received on the same topic.
Name Required Type Description
title Yes string
Tag name: Only Chinese characters, English letters, numbers, and underscores (_) are supported. No other characters are allowed. The maximum length is 32 characters, with each Chinese character counting as one character. * For ease of management, it's best to use your system's main ID as the corresponding tag. For example, if a device belongs to customer ID 888, the tag name should ideally be client_888 or simply 888. Tag names must be unique. If you attempt to create a duplicate tag, the code will still return 200, but the message will indicate that the name already exists.
remark No string
Tag's note information, optional

成功后,返回标签ID


Name Type Description
code int
Status code: 200 Success
data string
Creation successful; the tag ID of the successfully created tag will be returned. { id: 555 }
msg string
Status information