Wikipedia / MediaWiki · Schema
ActionApiWriteRequest
ActionApiWriteRequest schema from MediaWiki Action API
Open DataPublic APIsOpen KnowledgeEncyclopediaKnowledge GraphOpen SourceNon-Profit
Properties
| Name | Type | Description |
|---|---|---|
| title | string | Page title for edit/move/delete/protect |
| pageid | integer | Alternative to title |
| text | string | Full wikitext content for action=edit |
| appendtext | string | |
| prependtext | string | |
| summary | string | Edit summary |
| token | string | CSRF token from query&meta=tokens |
| basetimestamp | string | Timestamp of base revision for edit conflict detection |
| starttimestamp | string | |
| bot | boolean | Mark as bot edit (requires bot right) |
| minor | boolean | |
| recreate | boolean | |
| createonly | boolean | |
| nocreate | boolean | |
| lgname | string | Login username (action=login) |
| lgpassword | string | Login password (action=login) |
| lgtoken | string | Login token |
| filename | string | Destination filename for action=upload |
| file | string | File contents for action=upload (multipart) |
| url | string | Source URL for action=upload (sideload) |
| comment | string | Upload comment |
| tags | string | Pipe-separated change tags |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/wikipedia/refs/heads/main/json-schema/mediawiki-action-api-action-api-write-request-schema.json",
"title": "ActionApiWriteRequest",
"description": "ActionApiWriteRequest schema from MediaWiki Action API",
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Page title for edit/move/delete/protect"
},
"pageid": {
"type": "integer",
"description": "Alternative to title"
},
"text": {
"type": "string",
"description": "Full wikitext content for action=edit"
},
"appendtext": {
"type": "string"
},
"prependtext": {
"type": "string"
},
"summary": {
"type": "string",
"description": "Edit summary"
},
"token": {
"type": "string",
"description": "CSRF token from query&meta=tokens"
},
"basetimestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp of base revision for edit conflict detection"
},
"starttimestamp": {
"type": "string",
"format": "date-time"
},
"bot": {
"type": "boolean",
"description": "Mark as bot edit (requires bot right)"
},
"minor": {
"type": "boolean"
},
"recreate": {
"type": "boolean"
},
"createonly": {
"type": "boolean"
},
"nocreate": {
"type": "boolean"
},
"lgname": {
"type": "string",
"description": "Login username (action=login)"
},
"lgpassword": {
"type": "string",
"description": "Login password (action=login)"
},
"lgtoken": {
"type": "string",
"description": "Login token"
},
"filename": {
"type": "string",
"description": "Destination filename for action=upload"
},
"file": {
"type": "string",
"format": "binary",
"description": "File contents for action=upload (multipart)"
},
"url": {
"type": "string",
"format": "uri",
"description": "Source URL for action=upload (sideload)"
},
"comment": {
"type": "string",
"description": "Upload comment"
},
"tags": {
"type": "string",
"description": "Pipe-separated change tags"
}
},
"required": [
"token"
]
}