Preserve parent translation relationship when saving translated email via API

My idea is:

When updating a translated email via the API (e.g., using PATCH to change isPublished), the link to its parent translation should be preserved. Currently, this relationship is lost, breaking the multilingual structure.

User story

As an API user,
I want to preserve the relationship to the parent translation when saving or updating a translated email via the API,
So that translated emails remain correctly linked and manageable within Mautic’s multilingual content structure.


I think these groups of people would benefit from this idea:

  • Developers using the Mautic API
  • Teams managing multilingual campaigns
  • Integrators automating content management via API

Why I think they would benefit from this idea:

Losing the translation relationship leads to confusion and broken workflows in multilingual setups. Keeping the link intact ensures that translated content remains part of the correct hierarchy, improving maintainability and consistency across languages.


Any code or resources to support this idea:

Here’s a minimal example that reproduces the issue:

curl --location --request PATCH 'https://aivie.ddev.site/index_dev.php/api/emails/1/edit' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ***' \
--data '{
    "isPublished": false
}'

This removes the parent translation relation from email 1 (a translated email), even though that metadata was not modified in the request.


Are you willing to work on this idea?:

Yes, I’m happy to contribute, test, or help spec this out with guidance.

Just a quick update — I’ve completed the PR to fix this issue:
:link: mautic/mautic#15070

The fix ensures that the parent translation relationship is preserved when a translated email is updated via the API.

I’d appreciate it if you could take a moment to test and review the PR. Your feedback will help ensure it’s solid and ready to merge. :folded_hands:

Thanks for the support, and looking forward to your thoughts!