mailjet / mailjet-apiv3-nodejs

[API v3] Official Mailjet API v3 NodeJS wrapper
https://dev.mailjet.com
MIT License
232 stars 67 forks source link

Updating transactional email Html-Part creates new draft version from another template #276

Open descagb opened 3 months ago

descagb commented 3 months ago

Hi I'm facing an issue while trying to update html-part of a transactional email

Steps to reproduce

  1. Create a transactional email template by duplicating an existing one.
  2. Call PUT /template/5716835/detailcontent on the new template, passing html-part only
  3. The new template has no pending draft version

Id of problematic template: 5716835

Expected result

I should see a new entry in the template history, with no pending draft version.

Actual result

I do see a new entry in the history with the correct Html-Part, but also a draft was created from a completely unrelated template

Also deleting a draft from the website seems to be broken, and does not exist in the api...

--

Thanks a lot for your help !

Feederious commented 3 months ago

Same for me