How to filter requests based on modification date using REST API
Hello, I want to filter requests based on modification date using REST API. For example ,I want filer request which modified after specific time. How can i do this operation using REST API? Thanks
ServiceDesk Plus MSP (API task filter)
Hello, Is there a way to get a list of opened task assigned to a particular person using API? I have tryed by get a list of all tasks from ServiceDesk. import requests url = "https://server.com:port/api/v3/tasks" headers = {"technician_key":"D3200000-0000-0000-0000-6F49F7AC0A9E" }
Approvals and Tasks over REST API V2 Calls
I have gone over the documentation located at https://help.servicedeskplus.com/api A few times, and I can't seem to find any calls for working with Approvals or Tasks using the REST API call. Was this ever implemented in the Version 2 API? Is is possible even if it isn't in the documentation?
REST API with PowerShell
Hi Everyone, I have noticed several questions around REST APIs for Service Desk Plus on the forums, and some vague answers. I have been using the REST APIs as part of a daily PowerShell workflow for some time, and I thought I would post my PowerShell functions with the hope of helping others through an example. Please keep in mind that these are very basic functions, and they are not intended to be a one-size-fits-all module. So please modify to meet your needs, and feel free to post your changes
API Upload Attachment
Hi, I am trying to upload a file to a request but am getting an error To test I am using Postman before I implement it in .NET Now according to the error I have to configure something but I have no idea where that setting is, I assumed that to upload a file I should use FormData and pass along the file,filename and addtoattachment { "response_status": { "messages": [ { "status_code": 4001, "type": "failed", "message": "UPLOAD_RULE_NOT_CONFIGURED" } ], "status": "failed" } }
API for get organization role a department
Hi, I want to define conditional approval workflow. Now I need to API for get organization role details of department. I'm searching for this need in your API documentation but can't find it. What should I do? I need it ASAP? Thanks for helping
[SOLVED] Escape Sequences do not work as intended
Hey there I am trying to add a note to a request via the API: '{base_url}/api/v3/requests/32435/notes'. Headers and Content-Type all set up correctly. When trying to send this input data: { "request_note": { "description": "My Note\nFor you" } } it get
ServiceDesk Plus API task update
Hello, I'm trying to update a task from request though the browser page. It works fine from my python script, but i would like to ue a direct url in my project. Is there a way to convert put request to url ? Py code: import requests url = "https://web.site.com:1234/api/v3/tasks/36311"
Python add request to servicedesk plus
Hello, Can you help me, please. I'm trying to add request to servicedesk plus using python. Here is my code : import requests url = "https://web_url:port_number/api/v3/requests" headers = {"technician_key":"29CFC222-0000-4628-0000-04CAA5123456"} input_data = '''{ "operation": { "details": { "requester": "John Grey", "subject": "First request", "description": "Test request number 1", "requesttemplate": "Default Request", "priority":
API Methods for DynamicResourceGroups and Resources
Hi, The method to create a Dynamic ResourceGroup (DRG) works well but it's useless if we can´t share it with a user's group and create it behind a Resource Tree (For example "/Client/prod/<NewResourceGrpName>"). This Group will only be available for
Is anyone getting empty responses from the PMP ReST API when fetching data
PMP Enterprise Build We're trying to use the ReST API to generate passwords, add resources & accounts, and to fetch those resources, accounts, and passwords. I got the password generator working fine. I cannot get any of the other API calls to produce
Search tickets based on criteria via Powershell API
I want to search through tickets based on certain critera (see below) and output the ticket number/subjects at the end. I'm getting hung up on the subject line, as I want it to be based on finding duplicate names inside. How could I go about doing this? Search criteria: -status: not closed -and not resolved -group: Helpdesk -requester: HR -subject: contains the same usernames (can use regex to filter the subjects if necessary) For example (assuming tickets below meet status,group,requester criteria):
HTML into API REST
Hi, I am trying to create request within SDP using REST API but I am having difficulties. When I enter the description textually I have no problems. However, when I enter the description in HTML code it shows an error message indicating that the account cannot be found. Query: data={ "operation": { "details": { "description": "<style type=\"text/css\">table{border-collapse: collapse;border:0;width:100%,background-color:#e0e0e0}center{ width:100%}.td_header_1{padding: 20px
API v3 - Can't close tickets
We are able to create tickets that are already in the closed status, but we can't close existing tickets via the API. Using the below Powershell snippet OR Postman, I can't get the call to succeed: If i purposely malform the request, I can get a JSON formatted error from the API, but in the correct format, I receive an HTML 401 page. Powershell snippet to close a ticket: function Close-Ticket { param([Parameter(Mandatory=$true)][Int64]$TicketId, [Parameter(Mandatory=$true)][String]$ClosureComment, [Parameter(Mandatory=$true)][ValidateSet("success", "cancelled")][String]$ClosureCode)
Where can I find documentation on the CMDB API
Hi everyone! I'm looking for API documentation for the MSP version. Does anyone have the link?
Time & Date Value
What is the value of time and date in the system? I am trying to update some timed fields in requests, specifically the scheduled_time value of on hold. how do I generate the numeric value for the value field from a date time picker or the conversion of a specified date and time. "scheduled_time":{ "display_value":"Tue, Sep 8 08:00:00 EDT 2020", "value":"1599566400000" }
Close a Change via API and PowerShell (JSON Format)
Does anyone know the correct JSON to close a Change? $JSON = @" { "operation": { "details": { "stagename": "Close", "statusname": "Closed - Completed", "statuscomments" : "Closed via API", } } } "@ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $postparams = @{OPERATION_NAME = 'update'; TECHNICIAN_KEY = $apikey; INPUT_DATA = $JSON; FORMAT = 'JSON'} $JSONresult = Invoke-WebRequest -Uri $URI -Method POST -Body $postparams -UseBasicParsing | ConvertFrom-Json
Reading User Defined Field results in error
I get en error trying to read a UDF with the following characteristics: Site Name udf_pick_9306 Pick List - - UDF_CHAR78 Can some one tell me what I'm doing wrong? the error message and the code are below. Thanks Sal Error Message: Message : Traceback (most recent call last): File "ConditionalApprovalVPN.py", line 10, in <module> fieldvalue1 = requestObj['udf_fields']['udf_pick_9306'] KeyError: 'udf_fields' The code is: import sys, argparse, csv, json csv_file = 'approvalsinglefieldVPN.csv' filename
Define requester for an API query
When I test my JSON in the API tester through Admin > API > Documentation all general get requests are my logged in user. Is there a way to define the requester before the JSON body in an API request (V3 only please) perhaps as a header?
API questions
Hello All, I am developing a user interface using API V3 for our office, forcing important details into the ticket that our staff usually neglects. That said, I would like to add an interface to list the user's open tickets, then allowing them to add notes and close a ticket without sending them to the web interface. It's not a replacement, but a method of collecting information they always leave out, like "What server are you on?" So again, I need a View All Requests JSON for all requests of
API access to view remarks
In the on premise version of Desktop Central when waiting for a configuration to deploy of missing patches for a computer you can view remarks for it which tells you the estimated time they will deploy. Is there any way to see that using the API? Also is there any way to actually have Desktop Central deploy immediately insead of sometimes having to wait for an hour even though the patches are downloaded and ready to install?
APIv3 stopped work properly.
Hi, We've just updated our system from 10500 up to 10509. And now our scripts for realtime reporting doesn't work: 1) prior to version 10500 I've used the following script to get data 2) Once we've upgraded to 10500 I've found that your parser is now broken and can accept only encoded data 3) Now once we've upgraded to 10509 - It also doesn't work. HTTP/400 error with the following body: {"response_status":{"status_code":4000,"messages":[{"status_code":401,"type":"failed","message":"V3API restricted
POST request to Patch Management API
When trying to initiate a POST request using Python requests library to api/1.3/patch/downloadpatch I get the following response back. {"error_description":"No Patches Specified","message_type":"downloadpatch","error_code":"3004","message_version":"1.3","status":"error"} My code is as follows: headers = { "username": "<redacted username>", "password": "<redatcted password>", "auth_type": "ad_authentication", "domainName": "<redacted domain>", "Authorization":"<redacted auth token>",
Leveraging APIs with powershell
I am trying to wrap my head around the APIs. I have successfully been able to connect and authenticate via the API but I am wondering how I would query for all unapproved windows patches via the API? I also would like to be able to query specific computers for missing patches and store the results.
CMDB API - Get Virtual Machines
Hello, I'm trying to get all virtual machines in CMDB. I'm running this post request: getCIURL = SDPAddress+'/api/cmdb/ci' payload = { 'OPERATION_NAME': 'read', 'TECHNICIAN_KEY': apiKey, 'INPUT_DATA': """<?xml version="1.0" encoding="UTF-8"?> <API version="1.0" locale="en"> <citype> <name>Server</name> <criterias> <criteria> <parameter> <name compOperator="IS">CI Type</name> <value>Server</value> </parameter>
[Term of the Day]: API
Term of the Day “API” Definition — What is API? API stands for Application Programming Interface, which is a mechanism that allows the interaction between multiple applications using a set of rules. API is popular nowadays, it can be found in almost every application. In the helpdesk environment, it acts as a bridge between applications and allows to access the features or data of other applications or services through a set of functions and procedures. Once the helpdesk is bridged with other
Approval API for approve request not work - status code 4007
Hi, I define a new service catalog with two stage approval. 1. Stage One => Reporting to 2. Stage Two => CEO When I want to approve request by API from documentation page, show me this error: { "response_status": { "status_code": 4000, "messages": [ { "status_code": 4007, "type": "failed", "message": "Invalid URL" } ], "status": "failed" } } I attached my screenshot. What should I do? Or
API for convert incident request to service
Hi, I import request by XLS file to SDP, but all request imported as incident. Now I want to change some request incident by custom script and API. I wanna to call API from custom script to convert incident to service. I can't find any API for this job. What should I do? Do you have any solutions? Thanks
API Assets module in servicedesk plus
Hi, I am trying to fetch the Asset inventory from On-prem Manage Engine through Rest API. The goal is to dump the data into another tool that we use. But when I try to access "assets" or "asset" endpoint, I get 400 errors. Can you tell me the correct Rest API URL to call the Assets module and fetch Assets data? I'm using Servicedesk plus 9.3 build number 9322. Any help would be appreciated. Thanks!
Powershell custom script not displaying fail/success message
I have a script to assign tasks to the job owner which works however I'm trying to get the task details completed successfully pop-up to display after each task owner . I've tried all the variations I can find in the documentation but none seem to work. I've tried, $taskData $taskData.response_status.status $taskData.response_status.messages[0].message also tried all of these preceded by write-host and all produce the correct output when run through powershell but nothing is displayed when through
"%" in ServiceDeskPlus V3 API
I am trying to insert HTML tables into the description field of the V3 API. I have working HTML from the V2 API but this does not work now in V3. After much testing I have found that I cannot have a "%" symbol anywhere in the code. For example: This line of HTML will work correctly: <table align="center" style="border: 1px solid black; width: 100px;"><tr><td><h2 style="color:blue;">HTML example<h2></td></tr></table> This line does not work <table align="center" style="border: 1px solid black; width:
API Notes Help
I have an app that injects tickets into our on-prem system, this works flawlessly. I tried doing the same with a ticket note, example appears solid, it works from the little tester on the webpage. However when I do it from my app, or AdvancedREST that I use for testing, it fails stating the Technician key is invalid, but it is the same key that worked 30 seconds before to open the ticket through the API. Am I missing something?
REST API access to create and reply to email converstations
Hello all. Does anyone know if there is an exposed API to view, create and reply to email conversations in a ticket? I can see that there is a well-documneted API for Notes, but I am not able to find anything about Emails. Regards, Alex
Issue with RestFul API to update password
Hello, We are having issue to update an account password using the restful API. We don't have any issue retrieve the password on the other hand. We are getting an error where PMP is complaining that the JSON data was in the wrong format. C:\Users\administrator.RP\PycharmProjects\PMP\venv\Scripts\python.exe "C:/Users/administrator.RP/PycharmProjects/PMP/venv/Password Automation/update-password.py" { "operation":{ "Details":{ "NEWPASSWORD":"Test@12345$", "RESETTYPE":"REMOTE",
Create Task Via API
I would want to have a task automatically created once a service request has been approved. How do I implement this using Powershell or Python and the REST API?
Issue adding a request via API with Python
Hello, I am trying to add a request in ManageEngine (cloud version) via API using Python. The error I get is below: {'response_status': {'messages': [{'status_code': 4001, 'field': 'input_data', 'type': 'failed', 'message': 'Value not present for input_data'}], 'status': 'failed'}} The python code I am using is below: import requests import json URL = 'https://sdpondemand.manageengine.com/app/<my_portal_name>/api/v3/requests' headers = { 'Accept': 'application/vnd.manageengine.sdp.v3+json',
ServiceDesk Plus On Demand API V3 - Error with adding attachment to Request
Hi, I have a problem with adding attachments to requests using the API V3. The attachment seems to be uploaded (status code 200), but it does not appear on the Request screen. It is important that: This is with ME SDP On Demand. When ME SDP On Demand used the earlier API, I could successfully attach files to a Request. Authentication is fine, I can create a request using the API. I suspect that the problem is that (according to the documentation https://www.manageengine.com/products/service-desk/sdpod-v3-api/SDPOD-V3-API.html#add-attachment-to-a-request),
How to log in to ME SDP App?
Hi Team, I'm looking at using the Android SDP app, but when I try to set the server name I see "Error: Could not connect to the server". I've tried using the same URL as the web site: https://OurCompanyName.sdpondemand.manageengine.com/ Both with and without the https:// and end slash, "OurCompanyName" sitting in for our real company name. Using port 443. Logging in with my email address and password same as the web site login. I've generated an API key for my user login via https://accounts.zoho.com/apiauthtoken/create?SCOPE=SDPOnDemand/sdpodapi
PowerShell Script for Sending Email via API
Hi, I defined a custom trigger to be executed when a request from a specific service category has been approved. Basically, a Powershell script which accepts a json file as parameter is executed. The Powershell scripts then takes the WorkOrderId from the json file and passes this to a crystal report as a parameter. The crystal report then passes this parameter to a SQL command (stored procedure) to get corresponding values for the WorkOrder.(This is all happening). The report that is then generated
Use RESTful API with PMP Organizations (PMP MSP)
Hi, Is it possible to use restful APIs with PMP Organizations (in PMP MSP Enterprise) ? For example: Create a resource on an organization with restful API. Thanks, Best Regards, Quentin
Next Page