Adding attachment to Resolution using API

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 attachment to the particular resolution:

Link/Attach the attachment id with the corresponding request
URL:  <domain_url>/api/v3/requests/<request_id>
Method: PUT
Payload: input_data =  {"request":{"resolution":{"resolution_attachments":[{"id":"<attachment_id>"}]}}}
Response: request.resolution.



For multiple attachments to be added, the response should be as below, 

Payload: input_data =  {"request":{"resolution":{"resolution_attachments":[{"id":"<attachment_id>"},{"id":"<attachment_id>"}]}}}

                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to Auto close a request by adding a resolution using deluge script

                      Please note the script provided will work only from builds 10600 and above 1: Download the attached script and extract it. 2: Go to Admin > Request Custom Functions > Global function > New > Paste the content from the attachment 1.configuration.txt ...
                    • 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 : ...