# Merge a duplicate request into another (https://notert.io/docs/api/reference/merge-a-duplicate-request-into-another)

`POST /api/v1/requests/{id}/merge`

Merges a duplicate into the request it repeats, as the token's holder: the duplicate's votes count on the other once per person, its comments and followers move there, and the person it is from is emailed. Nothing is deleted, and an unmerge puts it back. Only requests the public board shows take part, so MERGE_REFUSED says why in data.reason. Either request merged already, or removed by a moderator, is NOT_FOUND, but a duplicate already merged into the same request answers as it stands, so the call sent again merges once. Answers the request merged into. Where the merge is made but that request can't be read back for the answer, the answer holds its id alone, and a get reads the rest.

Access: A token with requests:manage.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The duplicate's id. At most 64 characters. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `intoId` | string | Yes | The id of the request it repeats. At most 64 characters. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The id of the request merged into. |
| `key` | string | What people call the request by, as its page shows it. Every endpoint that takes a request's id takes it too. |
| `title` | string | What the request asks for, in a line. |
| `details` | string | What the request says beyond its title, in Markdown. |
| `status` | string | Where the request stands, from a new one to one the team completed or closed. One of: `pending`, `in_review`, `planned`, `in_progress`, `completed`, `closed`. |
| `boardId` | string | The board the request is on. |
| `parentId` | string or null | The request it is a sub-request of, or null for a top-level request. |
| `boardUrl` | string or null | Its page on the public board, at the workspace's own domain once one is connected. Null while a stranger can't open it: hidden, waiting for review or on a private board. |
| `authorId` | string or null | Who filed it, as the people endpoints name them: a customer's c_ id or a teammate's m_ id. Null once neither stands, as after the customer is erased. |
| `votes` | integer | How many people voted for it. |
| `createdAt` | date-time | When it was filed. |
| `updatedAt` | date-time | When it last changed, such as its title, details, status or board: the moment its version names. A vote or a comment doesn't change it. |
| `version` | string | Its version as read now, which a change sends back, so a change made since is refused rather than written over. One request's answers carry it; a page's don't. |
| `tagIds` | string[] | The ids of the tags it wears, in the workspace's order of its tags. |
| `ownerIds` | string[] | The teammates who own it, in the order they were added, by their m_ ids from GET /teammates and the people endpoints. |
| `estimatedDate` | date or null | The day the team expects to ship it, as YYYY-MM-DD, or null for none. |
| `hidden` | boolean | Whether the team keeps it off the public board. One on a private board, or waiting for review, isn't shown there either way. |
| `heldForReview` | boolean | Whether it waits for a moderator's review, off the public board until approved: held as it was posted, after an edit, or once reports sent it back. One a moderator removed is NOT_FOUND. |
| `attachments` | object[] | Its pictures and other files, in the order they were attached, every one the team sees on its page in the app. One request's answers carry them; a page's don't. |
| `attachments.attachmentId` | string | The file's id, which stays the same while its url may change from one read to the next. |
| `attachments.name` | string | The file's name. |
| `attachments.type` | string | The file's content type. |
| `attachments.size` | integer | The file's size in bytes. |
| `attachments.url` | string or null | Where the file opens. A file the public board may show keeps its address; one only the team sees opens until the end of the next day, so download what you keep rather than its address, and read the request again for a fresh one. Null while it can't be opened from outside the app: a document still being checked for safety, or a file a customer sent that waits for review or that the team keeps to itself, which open only in the app. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't change or delete requests, their status or their place on the roadmap. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `MERGE_REFUSED` | Those requests can't be merged now: one is waiting for review, hidden or on a private board, they are the same request, or the duplicate's sub-requests wouldn't fit. data.reason says which. Its data holds `title`, `reason`. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/requests/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40/merge \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "intoId": "3c7e9a1f-2b4d-4f6a-8c0e-1d3f5b7a9c24"
}'
```

## Example response 200

```json
{
  "id": "3c7e9a1f-2b4d-4f6a-8c0e-1d3f5b7a9c24",
  "key": "REQ-44",
  "title": "Dark mode",
  "details": "Easier on the eyes when we work late.",
  "status": "planned",
  "boardId": "2d9a7c41-6b3e-4e8f-a1c5-0f4b8d2e6a17",
  "parentId": "5e1b9f3a-7c2d-4a6e-8b0f-3d4c6a8e1f92",
  "boardUrl": "https://feedback.example.com/p/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40",
  "authorId": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
  "votes": 42,
  "createdAt": "2026-11-02T10:15:00.123Z",
  "updatedAt": "2026-11-10T14:05:00.123Z",
  "version": "2026-11-10 14:05:00.123456",
  "tagIds": [
    "7a3e1c9b-4d2f-4b8a-9e6c-2f1d5b7a3c08"
  ],
  "ownerIds": [
    "m_5k2m9p4q7r1t"
  ],
  "estimatedDate": "2026-12-15",
  "hidden": false,
  "heldForReview": false,
  "attachments": [
    {
      "attachmentId": "6d2f8b4a-9e1c-4a7d-b3f5-2c8e0a6d4b19",
      "name": "dark-mode.webp",
      "type": "image/webp",
      "size": 48213,
      "url": "https://notert-content.com/requests/6d2e9a1c/0b6f3a2e.webp"
    }
  ]
}
```
