# Merge a resource by id

Canonical page: https://docs.ovok.com/primitives/merge-resource-by-id

This route is listed in the supplied Ovok primitives reference. The instance-level merge contract is implementation-specific and has not been confirmed in the available Ovok API schema. This page records the route and makes the missing details explicit rather than guessing at a request body.

| Method | Path |
| --- | --- |
| `POST` | `/fhir/R4/:type/:id/$merge` |

## Contract status [#contract-status]

| Detail | Current documentation status |
| --- | --- |
| Resource type and ID | `:type` and `:id` identify the route target. |
| Request body | Not confirmed. |
| Other resource selection | Not confirmed. |
| Merge rules and history behavior | Not confirmed. |
| Response resource and status | Not confirmed. |

FHIR R4 does not define a generic instance-level `$merge` operation. Before using this route, obtain its Ovok `OperationDefinition` or an approved API contract covering source/target selection, access requirements, merge semantics, and response shape.

The [FHIR R5 Patient `$merge` operation](https://hl7.org/fhir/operation-patient-merge.html) is Patient-specific and does not establish the behavior of this generic FHIR R4 route.
