Skip to main content
POST
/
api
/
device
/
tag
/
relation
/
add
添加标签关联关系
curl --request POST \
  --url https://api.example.com/api/device/tag/relation/add \
  --header 'Authentication: <authentication>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tagId": "<string>",
  "targetId": "<string>",
  "targetType": "Device"
}
'
{
  "code": 123,
  "message": "<string>"
}

Headers

Authentication
string
default:{{token_1}}
required

Body

application/json
tagId
string
required

标签ID

targetId
string
required

关联目标ID(设备/产品ID)

targetType
enum<string>

关联类型Device/Product

Available options:
Device,
Product

Response

200 - application/json

操作成功

code
integer
message
string