Hidden field "_seen"

Hi,

Is it possible to set the seen flag on doctype that is tracking seen via rest or python script?

I have a doctype that is tracking seen and im importing data via rest api and I would like to set the seen flag as true or reset it somehow for the data I import.

Is this possible?

regards
Hemant

doc = frappe.get_doc(doctype, name)
doc.add_seen()

Great, works like a charm…thanks

regards