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 ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • 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 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 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 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 : ...
                      • Reply a request through v3 API (Postman)

                        The API documentation for replying a request is under Admin > API Documentation > Request > Add notification Syntax of the URL: http(or https)://<servername>:<portnumber>/api/v3/requests/<Request ID>/notifications?TECHNICIAN_KEY=<API Key> Call: Post ...