# MergeCampaigns

> Merge one campaign into another; the loser's posts, partners and spend move and it is deleted.… Write access, campaigns toolset, MCP tool merge_campaigns.

Merge one campaign into another; the loser's posts, partners and spend move and it is deleted. Irreversible.

> **Warning:**
> Irreversible. This operation removes or replaces something. MCP clients see it with `destructiveHint` set, and an agent should tell you what it will change and wait for your yes.

**Access:** [Write](https://developer.missin.co.uk/get-started/authentication.md#access-levels)

## Variables

| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `loserId` | `UUID!` | yes |  |  |
| `winnerId` | `UUID!` | yes |  |  |

## Call it

```bash curl
curl https://api.missin.co.uk/graphql/v1 \
  -H "Authorization: Bearer $MISSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operationName":"MergeCampaigns","variables":{"loserId":"00000000-0000-0000-0000-000000000000","winnerId":"00000000-0000-0000-0000-000000000000"},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"1d7cd65378488f0d63dfbdf4134f35a389f1065b595cc88d093f8f35ff8b37bd"}}}'
```

## Document

```graphql
mutation MergeCampaigns($loserId: UUID!, $winnerId: UUID!) { __typename mergeCampaigns(input: {winnerId: $winnerId, loserId: $loserId}) { __typename auditId moved { __typename discounts incentives partners posts sends } spendConverted userErrors { __typename code field message } } }
```

Source: https://developer.missin.co.uk/reference/campaigns/merge-campaigns
