# updateGroup Method

Updates the name and description of a group.

## Class

## Input Parameters

| 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

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

## Example Output Data

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