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
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 ...
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 ...
Attachment Dropping: Failure to Decode File Names Properly During Mail Fetching
Issue: The attachment is dropped due to invalid extension. Issue ID : SD-118194 After decoding, the file name appears as: Orange Załącznik nr 1 - Podsumowanie - uzupełnienie. xlsx(Contains space in the extension) However, the actual file name should ...