Stack Overflow Revision History and Stack Exchange API: Identifying Rollback Events
0 reputation · 19 Jun 2023, 06:17 UTC
API Synchronization of Post Rollbacks
Integrating external version control or auditing tools with Stack Overflow requires a precise understanding of post history. When a moderator performs a rollback, the system restores a previous state and generates a new revision entry in the post history.
The Stack Exchange API provides access to these revisions, but there is a lack of a dedicated, machine-readable flag in the response schema to distinguish a rollback from a standard manual edit. Relying on the revision comment field is unreliable, as these strings can be modified or omitted entirely.
For API consumers attempting to maintain an accurate mirror of post states, this creates an ambiguity in the interoperability boundary between the web UI's moderation actions and the API's data delivery.
- Does the Stack Exchange API provide a hidden or undocumented attribute to identify rollback-initiated revisions?
- Is there a recommended method to programmatically verify if a new revision is a restoration of a previous state without parsing free-text comments?