← Documentation home
POST/hyax-api/v1/admin/tasks/merge-migration-duplicates

Merge migration duplicate posts

Copies subscription plans from `-m{gfId}` duplicate slugs onto the base slug post. Defaults to dry run.

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Request body

FieldRequiredDescription
dryRunNoBoolean, default `true`
deleteDuplicatesNoBoolean — delete duplicate posts after merge (live run only)

Request examples

Same request in cURL, Node.js (fetch), and PHP (ext-curl).

curl -X POST 'https://platform.hyax.com/hyax-api/v1/admin/tasks/merge-migration-duplicates' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "dryRun": true,
    "deleteDuplicates": false
  }'

Example response

Shape varies by data; values are illustrative.

{
  "success": true,
  "data": {
    "dryRun": true,
    "updated": 42,
    "skipped": 5,
    "conflicts": 1,
    "deleted": 0,
    "pairs": [],
    "errors": []
  }
}