createGroup()

This method creates a new empty group.

This page discusses:

Arguments

  • displayName: Name to be displayed for the new group.
  • parentId: Optional argument identifying a parent group under which the new group will be created. If no parentId is provided, the parent group will be the root group for the analytics case.
  • priority: Optional argument used as initial rough weight, if weight is not defined, with a priority of 5 corresponding to a weight of 1 and a priority of 1 corresponding to weight of 5. priority must be an integer between 0 and 5, with a value of 0 corresponding to a Must-Have parameter with the same weight as a priority 1 parameter. The value of priority is not used for weighting if the weight attribute has been set. The default value for this attribute is 5.
  • weight: Optional argument defining a parameter weight to be used in scoring calculations, providing more specificity than priority. Weight must be a number between 1 and 5, or have a value of -1. A value of -1 represents that the weight is not set and that the weighting should default to use a value derived from the priority. The default value for this attribute is -1.

Return Value

Returns a dictionary-like object describing the newly created group.