Skip to main content
Solved

Set date range in assystREST api call

  • November 10, 2023
  • 1 reply
  • 389 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,

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+5

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,


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings