Type revision
Discussion
This type represents that state of a Post at some point in its history.
Note that under some circumstances multiple edits can result in only a single revision.
Fields
content_license 2.2
string
is_rollback
boolean
post_type
one of
question
, answer
, or article
revision_guid
string
revision_type
one of
single_user
, or vote_based
set_community_wiki
boolean
Fields marked with are included in the default filter, those marked with are excluded in the default filter.
Examples
► Question Revision
{"last_tags":["c#"],"tags":["c#","windows"],"user":{"reputation":9001,"user_id":1,"user_type":"registered","accept_rate":55,"profile_image":"https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","display_name":"Example User","link":"http://example.stackexchange.com/users/1/example-user"},"set_community_wiki":false,"is_rollback":false,"creation_date":1733626569,"post_id":1,"post_type":"question","revision_type":"single_user","revision_number":2,"title":"Question Title","body":"body as of this revision","last_title":"Old Title","last_body":"preceding body","comment":"revision comment","revision_guid":"BD1560DC-B5AE-4396-A262-8A5A9F73D392"}
► Answer Revision
{"user":{"reputation":9001,"user_id":1,"user_type":"registered","accept_rate":55,"profile_image":"https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","display_name":"Example User","link":"http://example.stackexchange.com/users/1/example-user"},"set_community_wiki":false,"is_rollback":false,"creation_date":1733626569,"post_id":1,"post_type":"answer","revision_type":"single_user","revision_number":2,"body":"body as of this revision","last_body":"preceding body","comment":"revision comment","revision_guid":"BD1560DC-B5AE-4396-A262-8A5A9F73D392"}
► Initial Question Revision
{"user":{"reputation":9001,"user_id":1,"user_type":"registered","accept_rate":55,"profile_image":"https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","display_name":"Example User","link":"http://example.stackexchange.com/users/1/example-user"},"set_community_wiki":false,"is_rollback":false,"creation_date":1733626569,"post_id":1,"post_type":"question","revision_type":"single_user","revision_number":1,"title":"Question Title","body":"body as of this revision","comment":"revision comment","revision_guid":"BD1560DC-B5AE-4396-A262-8A5A9F73D392"}
► Question Closed
{"user":{"reputation":9001,"user_id":1,"user_type":"registered","accept_rate":55,"profile_image":"https://www.gravatar.com/avatar/a007be5a61f6aa8f3e85ae2fc18dd66e?d=identicon&r=PG","display_name":"Example User","link":"http://example.stackexchange.com/users/1/example-user"},"set_community_wiki":false,"is_rollback":false,"creation_date":1733626569,"post_id":1,"post_type":"question","revision_type":"vote_based","revision_number":0,"comment":"Post Closed as \"not a real question\" by Example User","revision_guid":"BD1560DC-B5AE-4396-A262-8A5A9F73D392"}