E-mail with attachments from DHIS2 using API

We want to send E-mail using DHIS2 API. The CURL example is simple and takes only a string -

curl “localhost/api/33/email/notification?recipients=xyz%40abc.com&message=sample%20email&subject=Test%20Email”
-X POST -u admin:district

What about sending an HTML formatted mail with attachment.

The client is asking that on the click of a button we send a visualization exported as PDF, attach and send to selected users. Possible using DHIS2 API?