{ "$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" ] }