CreatePageRequest

CreatePageRequest schema from MediaWiki Core REST API

Open DataPublic APIsOpen KnowledgeEncyclopediaKnowledge GraphOpen SourceNon-Profit

Properties

Name Type Description
source string Wikitext source for the new page
title string New page title
comment string Edit summary
content_model string
token string CSRF token from Action API
View JSON Schema on GitHub

JSON Schema

mediawiki-core-rest-create-page-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wikipedia/refs/heads/main/json-schema/mediawiki-core-rest-create-page-request-schema.json",
  "title": "CreatePageRequest",
  "description": "CreatePageRequest schema from MediaWiki Core REST API",
  "type": "object",
  "properties": {
    "source": {
      "type": "string",
      "description": "Wikitext source for the new page",
      "example": "'''Hello, world.'''"
    },
    "title": {
      "type": "string",
      "description": "New page title",
      "example": "User:Example/Sandbox"
    },
    "comment": {
      "type": "string",
      "description": "Edit summary",
      "example": "Creating sandbox page"
    },
    "content_model": {
      "type": "string",
      "example": "wikitext"
    },
    "token": {
      "type": "string",
      "description": "CSRF token from Action API"
    }
  },
  "required": [
    "source",
    "title",
    "comment"
  ]
}