> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace Channel Sites

> Replaces ALL sites and apps in a DV360 channel with a new set (or clears the channel)

Replaces ALL sites and apps in a DV360 channel with a new set (or clears the channel). Prefer dv360\_edit\_channel\_sites for incremental changes. This method can be slow on large channels.

|                       |                               |
| --------------------- | ----------------------------- |
| **App**               | DV360                         |
| **Operation ID**      | `dv360_replace_channel_sites` |
| **Type**              | Action                        |
| **Connection**        | `dv360` (required)            |
| **Credits per run**   | 1                             |
| **Agent / MCP tool**  | Yes                           |
| **Requires approval** | Yes (write operation)         |

## Inputs

| Field        | Type                      | Required | Default | Description                                                                                                                                                                   |
| ------------ | ------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`    | DynamicAccount            | Yes      | -       | Select the DV360 advertiser that owns the channel.                                                                                                                            |
| `channel_id` | string or SelectItem      | Yes      | -       | ID of the channel whose sites to replace.                                                                                                                                     |
| `sites`      | string or array of string | No       | -       | The complete new set of site URLs or app IDs, as a list or newline-separated text; all existing sites are replaced with exactly this set. Required unless clear\_all is true. |
| `clear_all`  | boolean                   | No       | `False` | When true, remove every site from the channel (replaces with an empty set). sites must be left empty.                                                                         |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the final site set now in the channel.

**Fields**: `channel_id`, `site_count`, `sites`
