Skip to main content
Answer

Set date range in assystREST api call

  • November 10, 2023
  • 1 reply
  • 418 views

Forum|alt.badge.img

Hi,

 

I want to fetch all events in a certain date range. Following the docs ihttps://wiki.axiossystems.com/assyst11-3Wiki/index.php/Category:assystREST#JSON_Body, I already managed to get all events from a certain department, but I can’t manage to limit the results to a daterange. 

 

https://<assyst>/assystREST/v2/events?eventType=incident&eventStatus=open&assignedServDeptId=68 works just fine

https://<assyst>/assystREST/v2/events?eventType=incident&eventStatus=open&assignedServDeptId=68&dateLogged=2023-09-22T00:00:00Z,2023-09-22T20:00:00Z returns “Invalid Lookup Parameter: dateLogged”. Any idea on how to make this filter work?

Best answer by karim elharras

Dear customer,

 

Thank you for your question.

 

Please find the requested information below :

 

 

Date Logged

Searching for events logged between a range of dates can be achieved using a request like the following:

GET http://<server>:<port>/assystREST/v2/events?loggedDate=2014-09-22T00:00:00Z,2017-09-22T00:00:00Z&eventType=incident&eventStatus=open

Searching for events logged after specific date can be achieved using a request like the following:

GET http://:/assystREST/v2/events?loggedDate=2014-09-22T00:00:00Z&eventType=incident&eventStatus=open

The wiki links below contains  available REST examples : 

https://wiki.axiossystems.com/assyst11-7Wiki/index.php/Integrations:assystREST_More_Examples#Date_Logged

 

Kind regards,

1 reply

Forum|alt.badge.img+5
  • Do Gooder (Employee)
  • Answer
  • January 18, 2024

Dear customer,

 

Thank you for your question.

 

Please find the requested information below :

 

 

Date Logged

Searching for events logged between a range of dates can be achieved using a request like the following:

GET http://<server>:<port>/assystREST/v2/events?loggedDate=2014-09-22T00:00:00Z,2017-09-22T00:00:00Z&eventType=incident&eventStatus=open

Searching for events logged after specific date can be achieved using a request like the following:

GET http://:/assystREST/v2/events?loggedDate=2014-09-22T00:00:00Z&eventType=incident&eventStatus=open

The wiki links below contains  available REST examples : 

https://wiki.axiossystems.com/assyst11-7Wiki/index.php/Integrations:assystREST_More_Examples#Date_Logged

 

Kind regards,