Updating the datelastseen on API patrons when the API is called would help prevent those patrons from being accidentally batch deleted due to a lack of actual checkouts.
Should all API actions update the date? I am not sure what Koha does when the patron is edited (like adding a note), but I feel that this should probably not count as an activity?
(In reply to Katrin Fischer from comment #1) > Should all API actions update the date? > > I am not sure what Koha does when the patron is edited (like adding a note), > but I feel that this should probably not count as an activity? I'm sorry, I was unclear. I don't mean that every time we touch Patron A's record via an API route we should update Patron A's datelastseen. Instead, I mean if Patron B is the account to which my API credentials are attached for a given service, every time that service uses an API call to do something we should update Patron B's datelastseen. Patron B isn't a real patron, isn't really checking things out or returning them. Updating their datelastseen would help show that this API is still being used and the patron should not be deleted.
Got it! Thx for clarifying Andrew!