listmonk icon indicating copy to clipboard operation
listmonk copied to clipboard

[api] test email for campaign api requires all parameters

Open iloveitaly opened this issue 1 year ago • 3 comments

Version:

  • listmonk: 3.0.0
  • OS: ubuntu

Description of the bug and steps to reproduce: The /test endpoint seems to require all params that the creation endpoint does. Just passing subscribers returns a validation error.

I ran into this when building https://github.com/iloveitaly/listmonk-newsletter

iloveitaly avatar Jul 21 '24 21:07 iloveitaly

This is by design. This allows the campaign to be tested before it’s saved to the DB. Having to save every change to the DB only to test it is not ideal.

knadh avatar Jul 22 '24 03:07 knadh

Got it, that case makes sense.

Does this apply to after the campaign is created and persisted to the DB? Would be better for users if only subscriptions is required to send test emails if the campaign has already been fully created.

The docs state that only subscriptions is required, so I can submit a PR to better document this functionality.

iloveitaly avatar Jul 22 '24 14:07 iloveitaly

Yep, it always takes the inputs from the form, saved or unsaved, to send the test. Please do send a PR to fix the docs. Thank you.

knadh avatar Jul 23 '24 08:07 knadh

This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.

github-actions[bot] avatar Oct 22 '24 01:10 github-actions[bot]