---
search:
  tags:
    - hardening
    - POST
seo:
  description: >-
    Merge duplicate labels (per name+kind) and states (per name) onto the…
    Reference for the POST /workspaces/{organizationId}/dedupe endpoint in the
    Pile API.
sidebar:
  label: Create dedupe
  badge: POST
title: Create dedupe
type: openapi-operation
---
Merge duplicate labels (per name+kind) and states (per name) onto the oldest row and re-point every reference. Idempotent — a second run merges nothing.

`POST /workspaces/{organizationId}/dedupe`

**Responses**

- `200` — Dedupe counts

Response example, 200:

```json
{
  "labelsMerged": 0,
  "statesMerged": 0,
  "issuesRepointed": 0,
  "gitAutomationsRepointed": 0
}
```
