Creates a group with given parameters
Param name | Description |
---|---|
group required |
Object containing information about the group to be created Value: Must be a Hash |
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
Request curl -X POST -H "Content-Type:application/json" -H "X-Auth-Token:-Jt7v9qpdq8Ivi1WwQ6_iQ" -d '{"group":{"name":"Energy Meters Three Phase 45Amps","description":"Energy Meters Three Phase 45Amps","scope":"all","tags":"3-Phase,45-Amps"}}' https://api.datonis.io/api/v2/groups Response (details of the group created) { "group": { "description": "Energy Meters Three Phase 45Amps", "group_key": "9522a7a16t", "name": "Energy Meters Three Phase 45Amps", "scope": "all", "tags_array": [ "3-Phase", "45-Amps" ], "tags": "3-Phase,45-Amps", "created_at": 1428587904, "updated_at": 1417064371 } }