Stack Exchange · JSON Structure

Stackexchange Api V2 3 Revision Structure

A revision to a post.

Type: object Properties: 16
Q And ADeveloper CommunityKnowledge GraphStack OverflowStack ExchangeReputationTagsCommunityMCPAI Grounding

Revision is a JSON Structure definition published by Stack Exchange, describing 16 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

revision_guid revision_number revision_type post_type post_id comment creation_date is_rollback last_body last_title last_tags body title tags set_community_wiki user

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "name": "Revision",
  "description": "A revision to a post.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackexchange/refs/heads/main/json-structure/stackexchange-api-v2-3-revision-structure.json",
  "type": "object",
  "properties": {
    "revision_guid": {
      "type": "uuid",
      "example": "9f1f1ad2-9bcb-4f0c-9eee-1234567890ab"
    },
    "revision_number": {
      "type": "int32",
      "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": "int32",
      "example": 11227809
    },
    "comment": {
      "type": "string",
      "example": "Fixed typo"
    },
    "creation_date": {
      "type": "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": "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": "int32",
          "example": 1500000
        },
        "profile_image": {
          "type": "uri",
          "example": "https://i.sstatic.net/lLZAr.jpg?s=128"
        },
        "link": {
          "type": "uri",
          "example": "https://stackoverflow.com/users/22656/jon-skeet"
        },
        "accept_rate": {
          "type": "int32",
          "example": 92
        }
      }
    }
  }
}