API tracker result expire time

digiweb

Member
Mar 6, 2022
73
5
13
43
I'm calling the mail-related delivery records using the /api2/json/nodes/{node}/tracker/{id} section via the API.

The result is "null" for records older than 24 hours. Is there a setting for this?
 
what parameters do you use exactly?
 
you have to give the starttime and endtime as parameters too, else only the last 24hours will be searched
see
Code:
pmgsh help /nodes/{node}/tracker/someid --verbose
 
  • Like
Reactions: digiweb
I know this place. It doesn't say anything about showing the last 24 hours of data when no date is specified. I meant it.
 
yes it does, the docs of the parameters say:

endtime: Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.
starttime: Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.
 
  • Like
Reactions: digiweb