> ## 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 Subgroup

Creates a new subgroup under an existing load balancing group. Optionally assigns chargers to the new subgroup.

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

<ParamField path="siteGroup" type="integer" required>
  The ID of the parent group.
</ParamField>

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

<ParamField body="charger_uuids" type="string[]">
  An array of charger UUIDs to assign to the new subgroup.
</ParamField>

## Response

Returns the created subgroup 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>
