---
schema_version: "1"
id: 3f371cc9e01ebc77fe0feeab37e3fcea39e9b30d15b8552eb4a53ded8c355721
title: updateGroup Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-updategroup-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-updategroup-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6b6d0de388af73dc94ac1c034511eb55c6148b576f35ff06a41f2e086363d6e8
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# updateGroup Method

Updates the name and description of a group.

<!-- Section title is the name of the method followed by "Method". If appropriate, precede the method name with the class name and a colon.-->

## Class

<!-- broken link-->

<!-- Link(s) to the class(es) to which this method belongs. If more than one class implements the same interface, use an itemized list. Don't use a link if the class itself isn't documented for users, but do list the class name.-->


## Input Parameters

<!-- If this method has separate input and output parameters, split this section into two sections titled "Input Parameters" and "Output Parameters". Some methods of classes that implement VlocityOpenInterface2 might require an "Options Parameters" section as well.-->

| Parameter        | Required                        | Description                                             |
| ---------------- | ------------------------------- | ------------------------------------------------------- |
| parentId         | Required                        | Opportunity ID.                                         |
| contextId        | Required                        | Parent cart ID (Master or Enterprise quote or order ID) |
| groupId          | Required                        | Group ID.                                               |
| groupName        | Required                        | New name of the group.                                  |
| groupDescription | Optional: Default value is null | New description of the group.                           |
| cartType         | Optional: Defaults to Quote     | Quote or order.                                         |

## Output Parameters

| Parameter | Description           |
| --------- | --------------------- |
| message   | In case of any error. |


## Example Input Data

<!-- This is usually JSON, but it could be XML or a single value. For methods of classes implementing VlocityOpenInterface2 that have options parameters, include those here.-->

```
{"groupName":"Group-1","groupDescription":"Group-one1","groupId":"a4M0b000002CWMLEA4","parentId":"0060b00000vGbYbAAK","contextId":"0Q00b000000znJ3CAI","cartType":"Quote"}
```

## Example Output Data

<!-- This is usually JSON, but it could be XML or a single value. Salesforce uses Return Type, but this takes care of that.-->

```
{"error":"OK"}
```

