From 30b23ac0e51f5fff7f6ea4a0538e46faf2d4b7ca Mon Sep 17 00:00:00 2001 From: PurHur Date: Tue, 10 Mar 2020 14:03:50 +0100 Subject: [PATCH 1/2] WIP: Remove translationChildren because its not evaluated In the backend the children are always fetched via the `parent->getTranslationChildren` --- source/includes/_api_endpoint_emails.md | 1 - 1 file changed, 1 deletion(-) diff --git a/source/includes/_api_endpoint_emails.md b/source/includes/_api_endpoint_emails.md index 6a67b03817a..53e48c6edaa 100644 --- a/source/includes/_api_endpoint_emails.md +++ b/source/includes/_api_endpoint_emails.md @@ -368,7 +368,6 @@ customHtml|string|The HTML content of the email plainText|string|The plain text content of the email template|string|The name of the template used as the base for the email emailType|string|If it is a segment (former list) email or template email. Possible values are 'list' and 'template' -translationChildren|array|Array of Page entities for translations of this landing page translationParent|object|The parent/main page if this is a translation variantSentCount|int|Sent count since variantStartDate variantReadCount|int|Read count since variantStartDate From 24316c3ffcb96bec4290c0575cabda466eed94b9 Mon Sep 17 00:00:00 2001 From: PurHur Date: Tue, 10 Mar 2020 14:11:58 +0100 Subject: [PATCH 2/2] Fix wrong variable on PUT/PATCH email api calls. This commit is related to #7064 . Beside this commit replaces `page` with `email`. --- source/includes/_api_endpoint_emails.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/includes/_api_endpoint_emails.md b/source/includes/_api_endpoint_emails.md index 53e48c6edaa..f0f7423582e 100644 --- a/source/includes/_api_endpoint_emails.md +++ b/source/includes/_api_endpoint_emails.md @@ -295,8 +295,9 @@ customHtml|string|The HTML content of the email plainText|string|The plain text content of the email template|string|The name of the template used as the base for the email emailType|string|If it is a segment (former list) email or template email. Possible values are 'list' and 'template' -translationChildren|array|Array of Page entities for translations of this landing page -translationParent|object|The parent/main page if this is a translation +translationChildren|array|Array of email entities for translations of this email +templateTranslationParent|object|(Only if emailType is 'template') The parent/main email if this is a translation. +segmentTranslationParent|object|(Only if emailType is 'list') The parent/main email if this is a translation. variantSentCount|int|Sent count since variantStartDate variantReadCount|int|Read count since variantStartDate variantChildren|array|Array of Email entities for variants of this landing email