workers

Merge Workers

Merge duplicate worker records into one canonical identity (Patent 4 identity consolidation). Reassigns every reference (completions, timer events, points, payments, rosters — 31 columns across 31 tables), backfills missing phone/email on the primary, sums points, and tombstones the duplicates (merged_into + is_active=false — NEVER hard-deletes). ALWAYS run with dry_run=true first and show Mike the counts; pass dry_run=false only after explicit confirmation.

post/workers/merge

Request

  • Base URL: https://app.tascan.io/api/v1
  • URL: https://app.tascan.io/api/v1/workers/merge
  • Auth: HTTP bearer

Request body

primary_worker_idstring required

The canonical worker that survives (usually the one with a phone)

duplicate_worker_idsstring[] required

Worker IDs to fold into the primary (max 20)

dry_runboolean

true (default) = report reassignment counts only, change nothing. false = execute atomically.

Response

Success. JSON body: { data: ... } or an error object { error, message }.

Changes

No recorded changes to this operation across all 1 revision of this API.