Admin Articles Dedupe By Slug
D-12/13 · find + merge duplicate Article rows that share a (publisher_id, slug). Keeps the oldest row (most accumulated FKs), rewrites every dependent FK on the 10 child tables to point at the keeper, then deletes the duplicates. Idempotent: a re-run after a clean pass reports zero groups.
Once this runs to zero, the matching alembic migration that adds a UNIQUE constraint on (publisher_id, slug) can apply without error.
post/v1/admin/articles/dedupe-by-slug
Request
- Base URL: https://api.storyflo.com (the document declares no server; this is the origin it was published from)
- URL: https://api.storyflo.com/v1/admin/articles/dedupe-by-slug
- Auth: none declared
Headers
x-storyflo-email-tokenstring nullable
Request body
Response
Successful Response
object required
Changes
No recorded changes to this operation across all 1 revision of this API.