Home / Request / Close Request

Close Request


Close a request

URL
https://sdpondemand.manageengine.com/api/json/request/REQUEST_ID

Method
HTTP POST

API description
Closes a request in the ServiceDesk Plus On-Demand application

Parameters to be passed
authtoken, scope, OPERATION_NAME (value is CLOSE_REQUEST),INPUT_DATA

Sample INPUT_DATA:

{
   "operation": {
      "Details": {
         "CLOSEACCEPTED": "YES",
         "CLOSECOMMENT": "Some Comment",
         }
     }
}

Sample Request:

curl -d 
"scope=sdpodapi&authtoken=67a93350adf65dbd01f816408d43ad41

&OPERATION_NAME=CLOSE_REQUEST&INPUT_DATA=
{operation:{Details:{CLOSEACCEPTED:YES, CLOSECOMMENT:Some comment}}}"
https://sdpondemand.manageengine.com/api/json/request/10

Sample Response:

{
   "operation": {
      "name": "CLOSE_REQUEST",
      "result": {
         "status": "Success",
         "message": "Request 10 closed successfully."
      }, "Details": {
         "WORKORDERID": "10",
         "REQUESTER": "Howard Stern",
         "CREATEDBY": "Chris Cullen",
         "CREATEDTIME": "1348491035960",
         "DUEBYTIME": "1348491035960",
         "RESPONDEDTIME": "",
         "COMPLETEDTIME": "1348491035960",
         "SHORTDESCRIPTION": "Mail Server is down",
         "TIMESPENTONREQ": "2hrs 0min",
         "SUBJECT": "Subject of the request",
         "TEMPLATE": "Default Request",
         "MODE": "",
         "SLA": "High SLA",
         "ASSET": "",
         "DEPARTMENT": "",
         "SITE": "Not in any site",
         "CATEGORY": "",
         "SUBCATEGORY": "",
         "ITEM": "",
         "TECHNICIAN": "tech1",
         "STATUS": "Closed",
         "PRIORITY": "High",
         "LEVEL": "Tier 1",
         "IMPACT": "Affects User",
         "URGENCY": "Low",
         "IMPACT DETAILS": "",
         "REQUESTTYPE": "",
         "GROUP": ""
      }
   }
}




     RSS of this page