# Update group

> Rename an iMessage group, or bridge a group to the CRM.

Source: https://docs.mycrmsim.com/docs/groups/update-group

```http
PATCH https://backend.mysmsgateway.app/api/v1/ext/groups/{channel}/{id}
```

- Category: myCRMSIM Conversations / Group Chats
- Auth: Bearer access token
- Scope: `groups.write`

`crm_bridged: true` gives the group a `crm_phone` and shows it in the connected CRM as a contact (created on its next message), so replies typed there reach the group; `false` removes it (the number is kept for re-enabling). `name` is for iMessage groups: with an Advanced-Mode Mac the chat is renamed in Messages for everyone (`renamed_on_mac: true`), otherwise only the dashboard label changes. A WhatsApp group's name comes from WhatsApp.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `channel` | path | enum | yes | The group's channel. One of: `whatsapp`, `imessage`. Example: `imessage` |
| `id` | path | string | yes | The group id: a WhatsApp group JID (…@g.us) or an iMessage group key (imsg_group:<n>). Example: `imsg_group:7` |
| `name` | body | string | no | iMessage only. The new name. Example: `Family chat` |
| `crm_bridged` | body | boolean | no | Show the group in the CRM (true) or not (false). Example: `true` |

## Request body

```json
{
  "name": "Family chat",
  "crm_bridged": true
}
```

## Response 200

OK

```json
{
  "success": true,
  "message": "Group updated",
  "data": {
    "id": "imsg_group:7",
    "channel": "imessage",
    "workspace_id": 7,
    "name": "Family chat",
    "participant_count": 2,
    "is_active": true,
    "crm_bridged": true,
    "crm_phone": "+881700000007",
    "last_synced_at": null,
    "created_at": "2026-10-20T00:00:00.000Z",
    "updated_at": "2026-11-04T00:00:00.000Z",
    "status": "active",
    "source": "dashboard",
    "device_id": "A1B2C3D4-MAC",
    "participants": [
      {
        "handle": "+61412345678",
        "name": "Ann Lee"
      },
      {
        "handle": "bob@icloud.com",
        "name": "Bob"
      }
    ],
    "last_message_at": "2026-11-03T09:00:00.000Z",
    "renamed_on_mac": true
  }
}
```

## Response 400

Nothing to change, or a name on a WhatsApp group

```json
{
  "success": false,
  "message": "Only iMessage groups can be renamed here; a WhatsApp group's name comes from WhatsApp."
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): groups.write. This integration was granted: …"
}
```

## Response 404

Group does not exist or is not the installer's (same response for both)

```json
{
  "success": false,
  "message": "Group not found or not accessible to this token"
}
```
