How to create a bean note with an attachment inside SugarCrm

Hi people.

We have a schedule task in SugarCrm that call a restapi and with its reply we create some notes, the problem is that some replies has attachments with a public URL that has a lifetime of 15 min to download and save that file inside sugar wrapping in a note... I don't see any method in the documentation for that.

Anyone has any suggestion?

Greetings.