Updates the group with given parameters
| Param name | Description |
|---|---|
|
group required |
Object containing information about the group to be updated Value: Must be a Hash |
|
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
|
is_oem optional |
Update group in child account by oem user if is_oem flag is true. Value: Must be a Boolean |
Request - containing parameters to be modified
curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:49b7q_nYN4YZ2k-MsYx5Ng" -d '{"group":{"name":"Energy Meters Three Phase 50Amps","description":"Energy Meters Three Phase 50Amps","tags":"3-Phase,50-Amps"}}' https://api.datonis.io/api/v3/groups/ace98fcd44
Response (details of the group updated)
{
"group": {
"created_at": 1448438832,
"description": "Energy Meters Three Phase 50Amps",
"group_key": "ace98fcd44",
"group_type": 1,
"name": "Energy Meters Three Phase 50Amps",
"scope": "all",
"thing_expression": null,
"updated_at": 1448438952,
"tags": "3-Phase,50-Amps"
}
}