Home / Request / Get Request Feeds

Get Request Feeds


Get Request Feeds

URL
https://sdpondemand.manageengine.com/api/json/request_feeds

Method
HTTP POST

API description
Retrieves requests created or updated in the last 5 minutes. The input data can be changed so as to retrieve requests created or updated in the last one hour.

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

Sample Request:

curl -d "scope=sdpodapi&authtoken=67a93350adf65dbd01f816408d43ad41
&OPERATION_NAME=GET_REQUEST_FEEDS" 
https://sdpondemand.manageengine.com/api/json/request_feeds

Sample INPUT_DATA:

{
   "operation": {
      "Details": {
         "START_TIME": "1475732537150",      
         "FROM": "1",     
         "LIMIT": "100"      
       }
   }
}

START_TIME : When you give this, the requests that are created or updated after this start time will be returned. If you do not provide this, requests created or updated in the last 5 minutes will be returned. 
The value of start time cannot be lesser than one hour from current time. 

For example, if the current date/time is 18th June, 7.30 PM, the value of start time cannot be less than 18th June, 6:30 PM
The date/time must be converted to Unix epoch time and the api must be called with this epoch time.

A max of 100 requests will be returned. If there are more requests, there will be a key "hasMoreRows" with value "true" in the response.
You can again invoke the api after changing the FROM and LIMIT.

Only few details about the Request will be returned. For further details, you need to fetch each request using the GET_REQUEST api.

Sample Response:

{
   "operation":{
      "name":"GET_REQUEST_FEEDS",
      "result":{
         "status":"Success",
         "message":"Requests retrieved successfully"
      },
      "Details":[
         {
            "SUBJECT": "Test",
            "CREATEDTIME": "1475732537180",
            "WORKORDERID": "419",
            "LONG_REQUESTID": "363000001106001",
            "UPDATEDTIME": "1475732537180"
        },
      ],
     "totalRows": 1,
     "hasMoreRows": "false"
  }
}



     RSS of this page