Stack Exchange · Schema
Revision
A revision to a post.
Q And ADeveloper CommunityKnowledge GraphStack OverflowStack ExchangeReputationTagsCommunityMCPAI Grounding
Properties
| Name | Type | Description |
|---|---|---|
| revision_guid | string | |
| revision_number | integer | |
| revision_type | string | |
| post_type | string | |
| post_id | integer | |
| comment | string | |
| creation_date | integer | |
| is_rollback | boolean | |
| last_body | string | |
| last_title | string | |
| last_tags | array | |
| body | string | |
| title | string | |
| tags | array | |
| set_community_wiki | boolean | |
| user | object | Lightweight user reference embedded in posts and comments. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Revision",
"description": "A revision to a post.",
"$id": "https://raw.githubusercontent.com/api-evangelist/stackexchange/refs/heads/main/json-schema/stackexchange-api-v2-3-revision-schema.json",
"type": "object",
"properties": {
"revision_guid": {
"type": "string",
"format": "uuid",
"example": "9f1f1ad2-9bcb-4f0c-9eee-1234567890ab"
},
"revision_number": {
"type": "integer",
"example": 4
},
"revision_type": {
"type": "string",
"enum": [
"single_user",
"vote_based"
],
"example": "single_user"
},
"post_type": {
"type": "string",
"enum": [
"question",
"answer"
],
"example": "question"
},
"post_id": {
"type": "integer",
"example": 11227809
},
"comment": {
"type": "string",
"example": "Fixed typo"
},
"creation_date": {
"type": "integer",
"format": "int64",
"example": 1338800000
},
"is_rollback": {
"type": "boolean",
"example": false
},
"last_body": {
"type": "string"
},
"last_title": {
"type": "string"
},
"last_tags": {
"type": "array",
"items": {
"type": "string"
}
},
"body": {
"type": "string"
},
"title": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"set_community_wiki": {
"type": "boolean"
},
"user": {
"type": "object",
"description": "Lightweight user reference embedded in posts and comments.",
"properties": {
"user_id": {
"type": "integer",
"format": "int64",
"example": 22656
},
"user_type": {
"type": "string",
"enum": [
"unregistered",
"registered",
"moderator",
"team_admin",
"does_not_exist"
],
"example": "registered"
},
"display_name": {
"type": "string",
"example": "Jon Skeet"
},
"reputation": {
"type": "integer",
"example": 1500000
},
"profile_image": {
"type": "string",
"format": "uri",
"example": "https://i.sstatic.net/lLZAr.jpg?s=128"
},
"link": {
"type": "string",
"format": "uri",
"example": "https://stackoverflow.com/users/22656/jon-skeet"
},
"accept_rate": {
"type": "integer",
"example": 92
}
}
}
}
}