# `bird whatsapp groups invite-link rotate`

## Usage

```bash
bird whatsapp groups invite-link rotate <group-id> [flags]
```

## Description

Issue a new invite link for the group and invalidate every link issued before. Anyone holding an old link can no longer join. The group's current link is on the group itself, so read it rather than rotating to fetch it. Answers 200: the new link comes back on the call itself.

This is destructive and cannot be undone; pass --yes to confirm.

## Examples

```bash
bird whatsapp groups invite-link rotate <id> --yes
```

## Options

#### Safety

| Name                | Description                                                    |
| ------------------- | -------------------------------------------------------------- |
| `--idempotency-key` | Deduplication key; a retry with the same key won't act twice   |
| `--yes`             | Confirm a destructive action (required; the CLI never prompts) |

#### Options

| Name                | Description                                      |
| ------------------- | ------------------------------------------------ |
| `--response-schema` | Print the fields this command returns, then exit |

## Related resources

- [Should I use a Bird SDK or call the API directly?](/explained/platform/should-i-use-an-sdk-or-call-the-api-directly) (answer)
- [Build your first integration](/learn/paths/integration) (course)
- [Send your first email](/docs/get-started/send-your-first-email) (docs)

[Get an implementation brief](/learn/workspace?topic=api-basics)
