POST /api/v1/sites/{siteId}/pages/link-translation connects an existing page under a locale prefix to a default-locale source page so sidebars, hreflang, locale-scoped publish, and translation filters recognize it. Requires content:write.
Required scope:content:writeBoth source and variant accept { content_id } or { path }.
When to use it
Use this when an agent or script created MDX directly under /de/… (or another locale folder) before the page was registered as a translation variant. Until linked, untranslated_for still lists the source page and locale-scoped publish skips the orphan file.Prefer creating variants with translation_of + locale on Create a page when you control the write path.
Response
200 OK
{
"linked": true,
"already_linked": false,
"source_id": "…",
"variant_id": "…",
"path": "/de/guides/custom-overview.mdx",
"locale": "de",
"translation_group_id": "…",
"note": "This page is now a "de" variant. It publishes only with locale_scope:"all" or locale_scope:["de"] …"
}