---
schema_version: "1"
id: 3e39dbdaedd97855a650ad4a6af320985e869789082615da84a8b81b5800026e
title: updateGroup Method
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_t_updategroup_method_214716.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_t_updategroup_method_214716.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c8cc52f1c242f1d21d56b4767461850b3b51fc6be13e497c53538bbe3e68dfae
description: Updates the name and description of a group.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# updateGroup Method

Updates the name and description of a group.

## Class

## Input Parameters

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d225911e44">
              <p style="margin-bottom:0;">Parameter</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d225911e50">
              <p style="margin-bottom:0;">Required</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d225911e56">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e44 ">
              <p style="margin-bottom:0;">parentId</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e50 ">
              <p style="margin-bottom:0;">Required</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e56 ">
              <p style="margin-bottom:0;">Opportunity ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e44 ">
              <p style="margin-bottom:0;">contextId</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e50 ">
              <p style="margin-bottom:0;">Required</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e56 ">
              <p style="margin-bottom:0;">Parent cart ID (Master or Enterprise quote or order
                ID)</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e44 ">
              <p style="margin-bottom:0;">groupId</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e50 ">
              <p style="margin-bottom:0;">Required</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e56 ">
              <p style="margin-bottom:0;">Group ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e44 ">
              <p style="margin-bottom:0;">groupName</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e50 ">
              <p style="margin-bottom:0;">Required</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e56 ">
              <p style="margin-bottom:0;">New name of the group.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e44 ">
              <p style="margin-bottom:0;">groupDescription</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e50 ">
              <p style="margin-bottom:0;">Optional: Default value is null</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e56 ">
              <p style="margin-bottom:0;">New description of the group.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e44 ">
              <p style="margin-bottom:0;">cartType</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e50 ">
              <p style="margin-bottom:0;">Optional: Defaults to Quote</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e56 ">
              <p style="margin-bottom:0;">Quote or order.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Output Parameters

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d225911e212">
              <p style="margin-bottom:0;">Parameter</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d225911e218">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e212 ">
              <p style="margin-bottom:0;">message</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d225911e218 ">
              <p style="margin-bottom:0;">In case of any error.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Example Input Data

```
{"groupName":"Group-1","groupDescription":"Group-one1","groupId":"a4M0b000002CWMLEA4","parentId":"0060b00000vGbYbAAK","contextId":"0Q00b000000znJ3CAI","cartType":"Quote"}
```

## Example Output Data

```
{"error":"OK"}
```