MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=revisiondelete
(main | revisiondelete)
- このモジュールは読み取りの権限を必要とします。
 - このモジュールは書き込みの権限を必要とします。
 - このモジュールは POST リクエストのみを受け付けます。
 - ソース: MediaWiki
 - ライセンス: GPL-2.0-or-later
 
版の削除および復元を行います。
パラメーター:
- type
 Type of revision deletion being performed.
- この変数は必須です。
 - 値 (次の値のいずれか1つ): archive、filearchive、logging、oldimage、revision
 - target
 Page title for the revision deletion, if required for the type.
- ids
 Identifiers for the revisions to be deleted.
- この変数は必須です。
 - 複数の値は | または代わりの文字で区切ってください。
 - 値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
 - hide
 What to hide for each revision.
- 値 (| または別の文字列で区切る): comment、content、user
 - show
 What to unhide for each revision.
- 値 (| または別の文字列で区切る): comment、content、user
 - suppress
 Whether to suppress data from administrators as well as others.
- 値 (次の値のいずれか1つ): no、nochange、yes
 - 既定: nochange
 - reason
 削除または復元の理由。
- tags
 Tags to apply to the entry in the deletion log.
- 値 (| または別の文字列で区切る):
 - token
 action=query&meta=tokens から取得した「csrf」トークン
- この変数は必須です。
 
例:
- Main Page の版 12345 の本文を隠す。
 - api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&hide=content&token=123ABC [サンドボックスで開く]
 - Hide all data on log entry 67890 with the reason BLP violation.
 - api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&reason=BLP%20violation&token=123ABC [サンドボックスで開く]