Wikipedia / MediaWiki · JSON Structure

Mediawiki Core Rest Update Page Request Structure

UpdatePageRequest schema from MediaWiki Core REST API

Type: object Properties: 5 Required: 3
Open DataPublic APIsOpen KnowledgeEncyclopediaKnowledge GraphOpen SourceNon-Profit

UpdatePageRequest is a JSON Structure definition published by Wikipedia / MediaWiki, describing 5 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

source comment content_model latest token

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

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wikipedia/refs/heads/main/json-structure/mediawiki-core-rest-update-page-request-structure.json",
  "name": "UpdatePageRequest",
  "description": "UpdatePageRequest schema from MediaWiki Core REST API",
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "content_model": {
      "type": "string"
    },
    "latest": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "int32",
          "description": "Latest revision ID known to the client (for optimistic concurrency)"
        }
      }
    },
    "token": {
      "type": "string"
    }
  },
  "required": [
    "source",
    "comment",
    "latest"
  ]
}