Close Requests
URL
https://sdpondemand.manageengine.com/api/json/request
Method
HTTP POST
API description
Closes multiple requests in the ServiceDesk Plus On-Demand application
Parameters to be passed
authtoken, scope, OPERATION_NAME (value is CLOSE_REQUESTS),ID (Request IDs that are to be closed. This parameter can be present multiple times) and INPUT_DATA
Sample INPUT_DATA:
{
"operation": {
"Details": {
"CLOSEACCEPTED": "YES",
"CLOSECOMMENT": "Some Comment",
}
}
}
Sample Request:
curl -d "scope=sdpodapi&authtoken=244c93bbd236cba1f03ea4af747e2b3a&
OPERATION_NAME=CLOSE_REQUESTS&ID=1&ID=2&INPUT_DATA={ "operation": { "Details": { "CLOSEACCEPTED": "YES", "CLOSECOMMENT": "Some Comment",} } }" https://sdpondemand.manageengine.com/api/json/request
Sample Response:
{
"operation":
{
"name":"CLOSE_REQUESTS",
"result":
{
"status":"Success",
"message":"Requests closed successfully"
}
}
}