Data Attachment with API curl

Welcome to the community, @momou28! Maybe this post discussed previously should help you solve your issue: