# Can't set translation parent when creating segment emails via API

**URL:** <https://forum.mautic.org/t/cant-set-translation-parent-when-creating-segment-emails-via-api/36876>\
**Category:** Product Support\
**Created:** [November 7, 2025, 5:54pm UTC](https://forum.mautic.org/t/cant-set-translation-parent-when-creating-segment-emails-via-api/36876 "2025-11-07T17:54:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian\_p](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/christian_p/32/12656_2.png) [@christian\_p](https://forum.mautic.org/u/christian_p)\
**Post date:** [November 7, 2025, 5:54pm UTC](https://forum.mautic.org/t/cant-set-translation-parent-when-creating-segment-emails-via-api/36876/1 "2025-11-07T17:54:29Z")

</div>

**Your software**  
My Mautic version is: v5.2.8  
My PHP version is: 8.3.26  
My Database type and version is: MariaDB 10.6.23

**Your problem**  
My problem is: I’m trying to programmatically create translated newsletter emails (segment emails, emailType=‘list’) via the API, where a German email should be linked as a translation of an English parent email.

These errors are showing in the log: All requests returned HTTP 200, but translationParent remains null.

**Steps I have tried to fix the problem:**  
Based on the documentation and GitHub research, I’ve attempted the following approaches when calling POST  
/api/emails/new:

1. translationParent (as documented) - Result: translationParent: null in response
2. translationParent[id] (bracket notation for object) - Result: translationParent: null
3. templateTranslationParent (found in GitHub issue #7604 ) - Result: translationParent: null
4. segmentTranslationParent (from PR #140) - Result: translationParent: null
5. PATCH /api/emails/{id}/edit after creation with segmentTranslationParent - Result: translationParent: null

**My current workflow:**

1. Create EN email first, capture the returned email ID (e.g., id=16)
2. Create DE email with language=‘de’ and include segmentTranslationParent: 16
3. Check the response - translationParent is always null, translationChildren is always empty

Official API docs at [developer.mautic.org](http://developer.mautic.org) show translationParent as type “object” but provide no working examples

Is there a working method to set a translation parent for segment emails via the API in Mautic 5.2.8? If so, what is the correct parameter name and format? Or is this functionality not available via the API and only works through the UI?

Any guidance would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [November 10, 2025, 9:05am UTC](https://forum.mautic.org/t/cant-set-translation-parent-when-creating-segment-emails-via-api/36876/2 "2025-11-10T09:05:16Z")

</div>

Not sure if it’s the same problem but I remember testing this bug relating to the translated item not being retained on updating an email with the API, which has been fixed in Mautic 7 - others tested it on 4 and 6 and said it worked, so it might be worth giving it a go:

> <https://github.com/mautic/mautic/pull/15070>
>
> | Q | A
> | --------------------------------…------ | ---
> | Bug fix? (use the a.b branch) | ✔️
> | New feature/enhancement? (use the a.x branch) | ✔️❌
> | Deprecations? | ❌
> | BC breaks? (use the c.x branch) | ❌
> | Automated tests included? | ✔️
> | Related user documentation PR URL | mautic/user-documentation#... 
> | Related developer documentation PR URL | mautic/developer-documentation-new#... 
> | Issue(s) addressed | Fixes #... 
> 
> 
> \## Description
> 
> This PR fixes an issue where updating a translated email via the API would remove its relationship to the parent translation, even though that metadata wasn’t part of the update.
> 
> This ensures translated emails retain their correct parent linkage, keeping multilingual structures intact and manageable.
> 
> \### 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.
> 
> \---
> 
> \### 📋 Steps to test this PR:
> 
> 1. Open this PR in Gitpod or pull it down locally (see \[\[how to test a PR\](https://contribute.mautic.org/contributing-to-mautic/tester)\](https://contribute.mautic.org/contributing-to-mautic/tester)).
> 
> 2. Create a \*\*parent email\*\* and a \*\*translated version\*\*.
> 
> 3. Run the following API request on the translated email:
> 
> \`\`\`bash
> curl --location --request PATCH 'https://\<mautic.address\>/api/emails/\<translated-email-id\>/edit' \\
> --header 'Content-Type: application/json' \\
> --header 'Authorization: Basic \<your-token\>' \\
> --data '{
> "isPublished": false
> }'
> \`\`\`
> 
> Make sure to:
> 
> \* Replace \`\<mautic.address\>\` with your actual Mautic instance URL.
> \* Replace \`\<translated-email-id\>\` with the actual translated email ID.
> \* Set a valid Authorization token.
> 
> 4. After the request is completed, please verify that the parent translation relationship remains intact and has not been removed from the translated email.

In terms of the docs, it’s best to use the new docs:

> **[Welcome to Mautic’s developer documentation — Mautic Developer Documentation...](https://devdocs.mautic.org/en/5.x/)**

The old legacy docs are quite out of date now, but there’s some resources which haven’t yet been ported over so we’re keeping it open for reference.

---

<div class="post-metadata">

**Author:** ![christian\_p](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/christian_p/32/12656_2.png) [@christian\_p](https://forum.mautic.org/u/christian_p)\
**Post date:** [November 10, 2025, 11:44am UTC](https://forum.mautic.org/t/cant-set-translation-parent-when-creating-segment-emails-via-api/36876/3 "2025-11-10T11:44:56Z")

</div>

> [@silavapi](#):
>
> others tested it on 4 and 6 and said it worked, so it might be worth giving it a go:

Thank you. Guess I am waiting for Mautic 7 then for the moment. will try it on 5.2 if i find some time. in the meantime i will use the gui. I appreciate the help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [November 11, 2025, 11:45pm UTC](https://forum.mautic.org/t/cant-set-translation-parent-when-creating-segment-emails-via-api/36876/4 "2025-11-11T23:45:02Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
