Adds specified tags to the existing list of tags associated with the group
| Param name | Description |
|---|---|
|
tags optional |
Comma separated list of tags to be added to the group Value: Must be a String |
|
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
Request - add tags to the specified group (group_key specified as a part of the url)
curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:-Jt7v9qpdq8Ivi1WwQ6_iQ" -d '{"tags":"4-Wire,Balanced"}' https://api.datonis.io/api/v2/groups/8tt9t7dde4/tag
Response (group with updated tags)
{
"group": {
"description": "",
"group_key": "8tt9t7dde4",
"name": "Energy Meters Single Phase 30Amps",
"scope": "all",
"tags_array": [
"1-Phase",
"30-Amps",
"4-Wire",
"Balanced"
],
"tags": "1-Phase,30-Amps,4-Wire,Balanced",
"created_at": 1428569250,
"updated_at": 1417064371
}
}