> ## Documentation Index
> Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Group

Creates a new load balancing group for the specified location. If a group already exists, it will be deleted and replaced with the new one.

<ParamField path="site" type="string" required>
  The UUID of the location.
</ParamField>

<ParamField body="net_type" type="string" required>
  The electrical network type. Must be one of: `IT`, `TT`, `TN`, `unknown`. A value of `unknown` is stored as `TT`.
</ParamField>

<ParamField body="total_amps" type="integer" required>
  The total available amperage for the group. Minimum value is `6`.
</ParamField>

<ParamField body="meter_uuid" type="string">
  The UUID of a meter to attach to the group. Cannot be used together with `meter_id`.
</ParamField>

<ParamField body="meter_id" type="integer">
  The numeric ID of a meter to attach to the group. Cannot be used together with `meter_uuid`.
</ParamField>

## Response

Returns the created group object.

<ResponseField name="id" type="integer">
  The numeric ID of the group.
</ResponseField>

<ResponseField name="site_id" type="integer">
  The numeric ID of the location this group belongs to.
</ResponseField>

<ResponseField name="group_id" type="integer">
  The ID of the parent group, or `null` if this is a root group.
</ResponseField>

<ResponseField name="meter_id" type="integer">
  The ID of the attached meter, or `null`.
</ResponseField>

<ResponseField name="total_amps" type="integer">
  The total available amperage for the group.
</ResponseField>

<ResponseField name="net_type" type="string">
  The electrical network type. One of `TN`, `TT`, or `IT`. May be `null`.
</ResponseField>

<ResponseField name="method" type="string">
  The load balancing method. One of `boost` or `solar`.
</ResponseField>

<ResponseField name="solar_additional_amps" type="integer">
  Additional amperage from solar.
</ResponseField>

<ResponseField name="solar_always_charge" type="boolean">
  Whether to always allow charging when solar is available.
</ResponseField>

<ResponseField name="solar_always_charge_amps" type="integer">
  Minimum amperage when solar always charge is enabled.
</ResponseField>

<ResponseField name="smart_charging_charge_on_solar_export" type="boolean">
  Whether to charge on solar export.
</ResponseField>

<ResponseField name="peak_shaving_enabled" type="boolean">
  Whether peak shaving is enabled for this group.
</ResponseField>

<ResponseField name="peak_shaving_threshold" type="integer">
  The peak shaving threshold in amps.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 timestamp of when the group was created.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp of when the group was last updated.
</ResponseField>
