N
Novu2w ago
Harinder

v1/changes/bulk/apply API seems to be broken in 2.0.0

We create templates in development using the v1/notification-templates API and then bulk apply them to production. However, since upgrading to the 2.0.0 image, the changes are not being applied to all production templates. The successful updates are being applied to only few and many templates are updated with missing steps.
No description
3 Replies
Pawan Jain
Pawan Jain2w ago
@Harinder v1/notification-templates are deprecated. Kindly use /workflows api instead. Would you like to share the usecase of creating workflow using api?
Harinder
HarinderOP2w ago
Thanks @Pawan Jain , I replaced it with /workflows but there are still few left with missing steps in production tab, does bulk/apply has a limit on how many it can apply together? We pass more than 100 change ids to bulk/apply. We use API to keep templates agnostic to programming languages so that anyone can add templates. We have yaml files for sms, in-app and html for email.
Pawan Jain
Pawan Jain2w ago
@Harinder I see you are self-hosting and using 2.0.0 version. I would recommend using code first workflows using @novu/framework
Want results from more Discord servers?
Add your server