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:
- import requests
- inputdata = """
- {
- "operation": {
- "details": {
- "from": 0,
- "limit": 100,
- "filterby": "All_Requests"
- }
- }
- }"""
- data = { "OPERATION_NAME": "GET_REQUESTS",
- "TECHNICIAN_KEY": api_key,
- "INPUT_DATA": inputdata,
- "format": "json" }
- request = requests.post( url = base_url + "/request/", data = data )
New to ADSelfService Plus?