# `bird email dedicated-ips assign`

## Usage

```bash
bird email dedicated-ips assign <dedicated-ip-id> [flags]
```

## Description

Move a dedicated IP to a pool

Move a dedicated IP into the IP pool given by ip_pool_id. An IP is always in exactly one pool, so this is a move. The last IP cannot leave the default pool, and the shared pool cannot hold dedicated IPs.

Build the request from flags, a JSON DedicatedIPAssign body via --body-file ("-" reads
stdin), or both — a flag overrides the matching body field. Run --example to
print a ready-to-edit body, or --dry-run to print the resolved request without
sending it.

## Examples

```bash
# print the body shape (no credentials needed)
bird email dedicated-ips assign --example

# the body it prints:
```

```json
{
  "ip_pool_id": "ipp_01krdgeqcxet5s7t44vh8rt9mg"
}
```

## Options

#### Destination

| Name           | Description                             |
| -------------- | --------------------------------------- |
| `--ip-pool-id` | The pool to move the dedicated IP into. |

#### Request

| Name                | Description                                                  |
| ------------------- | ------------------------------------------------------------ |
| `--body-file`       | Read the JSON request body from this file; "-" reads stdin   |
| `--example`         | Print a complete example request body, then exit             |
| `--dry-run`         | Print the resolved request without sending it, then exit     |
| `--idempotency-key` | Deduplication key; a retry with the same key won't act twice |

#### Options

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

## Related

| Name                                                                                | Description             |
| ----------------------------------------------------------------------------------- | ----------------------- |
| [`bird email dedicated-ips create`](/docs/cli/reference/email-dedicated-ips-create) | Purchase a dedicated IP |
| [`bird email dedicated-ips delete`](/docs/cli/reference/email-dedicated-ips-delete) | Cancel a dedicated IP   |
| [`bird email dedicated-ips get`](/docs/cli/reference/email-dedicated-ips-get)       | Get a dedicated IP      |
| [`bird email dedicated-ips list`](/docs/cli/reference/email-dedicated-ips-list)     | List dedicated IPs      |