adding an attachment while creating an incident through REST API

Community Alums
Not applicable

Hi Everyone!! Can anyone please let me know how can we add an attachment(doc,docx,zip,pdf,txt,xls,xlsx,ppt,pptx,jpg,jpeg) while creating an incident through REST API??

I found attachment API through which it can be done. But create Incident and uploading attachment should be done through single REST call not through two different APIs.

Anyone help on this will be appreciated ?? How can this be achieved??

5 REPLIES 5

Community Alums
Not applicable

Hi !! Creating an incident and adding attachments give two different APIs. After we create an incident only the attachment can be added as attachment API depends on the sys_id of the record. While creating an incident how can attachment API be called?Anyone help on this will be appreciated ?? How can this be achieved??