Add Attachment via API for Request Notifications.

Add Attachment via API for Request Notifications.


Please refer to the below steps on how to add the attachments for Notifications via API. 


1. Please go to API - Add Attachment to Notification API and add the request ID and the attachment.  

Screenshot for reference:






2. Then, you would need to find the attachment id. The attachment ID would be in the response body on the screenshot above. 





3. Use that attachment ID and add a Notification. 





Input data for adding a Notification via API with the attachment ID. 


{
    "notification": {
        "subject": "Re: [Request ID :##31##] : Unable to fetch mails",
        "description": "Description : I am unable to fetch mails from the mail server",
        "to": [
            {
                "email_id": "req9@sdpmsplinmail.com"
            },
           ],
      "attachments": [ {
        "name": "OAuth Credentials 1 (1).xlsx",
       "id": "603"
    }
],
        "type": "reply"
    }
}

                  New to ADSelfService Plus?

                    • Related Articles

                    • Adding attachment to Resolution using API

                      PURPOSE: To add an attachment to the resolution via API. STEPS: 1) Upload the attachment file and obtain the attachment ID: URL: <domain_url>/api/v3/requests/upload Method: POST Payload: files ( input_data = <file_content> ) Response: 2) Add the ...
                    • Request add attachment_Python script-API

                      Steps for adding attachment to the request through python script-API. Extract the attached  "Attachment_Python_Script.zip" >> Edit attachmentscript.py >>Mention product installed url in the base url ; update the api key; update the request id that ...
                    • Add Attachment API assistance for other tools

                      Our sample html to test Add Attachment API works well. However many customers are having trouble converting it to code/other tools (Powershell, python, Postman, Curl). Hence we are posting this article to get it using Postman for other tools. We can ...
                    • Add attachments using API

                      Attachment cannot be added when a request is created, it can be only added after request creation URL : http://localhost:8080/api/v3/attachments?TECHNICIAN_KEY=XXXXXXXXX Body
                    • Add request API Using Postman

                      You need to send the TECHNICIAN_KEY and format in Params and the data in Body. Also, you have to encode the body and send it. Please refer to the below for your reference which is sent using postman. Attached is the SAMPLE JSON file Example : ...