# Organization programs: merge

URL: /code/mcp/organization/verbs · Id: `page:code/mcp/organization/verbs`

> The Organization Verbs merge as MCP do programs, with inputs, result, refusals and an example.

Reference for [Organization](/business/nouns/organization), one group of [Organization programs](/code/mcp/organization).

### Organization.merge
Merge joins a duplicate Organization into another, keeping every Contact, Deal and Event on the one that remains. [Verb page](/business/nouns/organization/merge?interface=mcp).

```text
do: return await $.Organization.merge(input)
```

Emits [`Organization.merged`](/business/events/Organization.merged).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `organization` | [Organization](/business/nouns/organization) | Yes | The duplicate. |
| `into` | [Organization](/business/nouns/organization) | Yes | The Organization that remains. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `organization` | [Organization](/business/nouns/organization) | Yes | The remaining Organization. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Organization.merge({ organization: 'organization_v0SkRLrXCN', into: 'organization_v0SkRLrXCN' })"
  }
}
```