The documentation defines text_content and html_content but this does not work:
Brevo::TransactionalEmailsApi
.new
.send_transac_email(
sender: { name: "Foo", email: "foo@bar.com" },
to: [{ email: "foo@bar.com" }],
text_content: "Some text",
subject: "Hi"
)
which yields: {"code":"missing_parameter","message":"Either of htmlContent or textContent is required"}.
Changing the param to textContent fixes the issue.