Skip to main content
Closed for Voting

Create attachments through API

Related products:Freshdesk
  • November 12, 2019
  • 1 reply
  • 23 views

Hi,


How do i create a ticket with attachments where file name is in the form of URL (salesforce file). For example:


curl -v -u test@company.com:test -H 'Content-type: multipart/form-data' -F "attachments[]=https://companyname.my.salesforce.com/sfc/p/0t0000000wk5/a/0t0000000Cp7/K0CKHoc_6OTY.GLNrdGLMg_XCBcUr8HhRKvxBEAHF.Y" -F "email=example@example.com" -F "subject=Ticket Title" -F "description=this is a sample ticket" -X POST 'https://demo.freshdesk.com/api/v2/tickets'


Thanks,

1 reply


Hello Pradeep,


As of now, our create a ticket with attachment works only with files present in your local machine i.e. the paths you specify for "attachments[]=" should be a local path.

Happy to pass on the feedback and explore the feasibilities for the same. 


Cheers!