API search for requests after certain date/time

API search for requests after certain date/time

Hi all,

I'm currently trying to get requests from SDP using the API so I can import them into another system. To do this I want to search for the latest requests.

I tried multiple things, but all I can currently get is the last 100 items. However, what I would like to have is the requests that were added in the last 5 minutes.

Can you please help me in finding out what I'm doing wrong?

The current code that does work (python), but without searching for the last 5 minutes:
  1. import requests
  2. inputdata = """
  3. {
  4.   "operation": {
  5.     "details":  {
  6.       "from": 0,
  7.       "limit": 100,
  8.       "filterby": "All_Requests"
  9.     }
  10.   }
  11. }"""
  12. data = { "OPERATION_NAME": "GET_REQUESTS",
  13.          "TECHNICIAN_KEY": api_key,
  14.          "INPUT_DATA": inputdata,
  15.          "format": "json" }
  16. request = requests.post( url = base_url + "/request/", data = data )


                  New to ADSelfService Plus?