What exactly updates the modifiedTime key?

What exactly updates the modifiedTime key?

Do any changes to the ticket (including automatic updates, api calls, ticket status changes, replies, and comments) update the "modifiedTime" value or only when an agent opens the edit menu and saves it (with the screen pulled up via the "e" key shortcut)?