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 the attachment need to be upload; mention the file name >> save (Here 'test.txt' is placed under the folder "Attachment_Python_Script" and the same is mentioned in the script )
Command prompt >> execute the command to upload the attachment-->py attachmentScript.py
![](https://pitstop.manageengine.com/DocsDisplay?zgId=4335217&mode=inline&blockId=3pyrv1b9f20751edc440c96f81f8031664814) |
Above highlighted are the those that need to be modified based on the requirement. If you are generating technician key under Admin->Technicians, you need to save it. You may also generate the same for the logged in technician using the API key generation option at the profile box at the right top.
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 ...
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 for adding a new request according to the option selected by requester and new request created will be added to notes
This is a script for adding new request from a older request according to the option selected by the requester. If requester selects option A request must be closed , if requester selects option B a new request will be created and the new request ID ...
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 : ...
Create New request using Python Script
Script to raise a new request using Python Script. Pre-requisite - Python should be installed in the server and configured. You can review the instructions here - Requests module should be installed with the python Steps 1. Download the zip file from ...