---
title: "Move data source duplicates"
method: POST
path: "/api/data-source-items/move"
tags: ["data_source_items"]
---

# Move data source duplicates

`POST /api/data-source-items/move`

## Request

- Base URL: `https://beta.getsales.io/playtables/v1`
- URL: `https://beta.getsales.io/playtables/v1/api/data-source-items/move`
- Auth: HTTP bearer and API key in header `Team-SID`

Move the duplicate people a source found into its table after the fact: the rows the policy left where they were (status duplicate, action skipped) move with their stage, owner and history; every kind of source. sids picks some, absent = every one left in place; counts.groups.already_in_playtable_sid on a search says how many and where. Companies never move and count as left. 409 no_target_playtable when the table is gone.

Contract:
- MCP tool `move_data_source_duplicates`, registry package `mcp.playtables/data_source_items`, mount `playtables.sources`.
- Operation `action`, response envelope `action`.
- Flags: mass action: this verb's own request accepts a filter or targets[] set, which the owning service drains.

## Request body

- MoveDataSourceDuplicatesRequest: Request body of `move_data_source_duplicates`.
  - `data_source_sid` string, required: The source whose duplicates move into its own table (ds_sc_…).
  - `sids` string[]: The items to move (ds_it_…), a page of the review at most; absent = every duplicate the policy left in place.

## Response `200`

`action` success envelope.

- MoveDataSourceDuplicatesResponse
  - `success` true, required
  - `operation` 'action', required
  - `action` string, required: kebab-case verb; matches the route segment.
  - `item` unknown, required
  - `result` object, required
    - `moved` integer, required: People moved into the table.
    - `left` integer, required: Rows that stayed: companies, and people whose row is gone.
    - `moved_sids` string[], required: The items that now read moved.
  - `meta` object, required
    - `trace_id` string, required: UUID v7; same 128-bit value as the X-Trace-Id header.
    - `span_id` string, required: 16 hex chars, root span of this request.
    - `timestamp` string, required: ISO 8601 UTC (Y-m-dTH:i:sZ), response time.
    - `duration_ms` integer, required: Server-side wall clock.
    - `team_sid` string, nullable: The team this call ran in (the token team, or the team_sid override). Null when unauthenticated; absent from pre-2026-08-20 backends.
    - `actor_type` string, nullable: user | agent | api_key | system. Null when unauthenticated; absent from pre-2026-08-20 backends.

## Other responses

- `4XX`: MCP error envelope. `error.code` is one of validation_failed, nothing_to_update, not_found, relation_not_found, invalid_transition, limit_exceeded, payment_required, duplicate_rejected, conflict, delete_blocked, unauthorized, forbidden, rate_limited, not_implemented.
- `5XX`: MCP error envelope with `error.code` internal_error or service_unavailable.

---

[API](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-playtables.md) - [All operations](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-playtables/llms.txt) - [OpenAPI document](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-playtables/revisions/aa394506515d?raw)
