Creates a group with given parameters

Params

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
is_oem
optional

Create group in child account by oem user if is_oem flag is true.


Value: Must be a Boolean
child_organisation_key
optional

Organisation key of child account where oem user wants to create group. Required field if is_oem is present.


Value: Must be a String

Examples

Request
  curl -X POST -H "Content-Type:application/json" -H "X-Auth-Token:49b7q_nYN4YZ2k-MsYx5Ng" -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/v3/groups

Response (details of the group created)
{
  "group": {
    "created_at": 1448438832,
    "description": "Energy Meters Three Phase 45Amps",
    "group_key": "ace98fcd44",
    "group_type": 1,
    "name": "Energy Meters Three Phase 45Amps",
    "scope": "all",
    "thing_expression": null,
    "updated_at": 1448438832,
    "tags": "3-Phase,45-Amps"
  }
}