Did you try this?
the attachment name should be the parameter name that you give for attachment in the api request
For file attachments you need a Ilocalresource which you can get as an output from path exists activity that needs to be passed there
cheers