MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=mergehistory

(main | mergehistory)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページの履歴を統合する。

パラメーター:
その他一般パラメーターが利用可能です。
from

履歴統合元のページ名。fromid とは同時に使用できません。

fromid

履歴統合元のページ。from とは同時に使用できません。

型: 整数
to

履歴統合先のページ名。toid とは同時に使用できません。

toid

履歴統合先のページID。to とは同時に使用できません。

型: 整数
timestamp

Timestamp up to which revisions will be moved from the source page's history to the destination page's history. If omitted, the entire page history of the source page will be merged into the destination page. May specify "timestamp|revid" to split two revisions with the same timestamp.

reason

履歴の統合の理由。

既定値: (空)
starttimestamp

Timestamp from which revisions will be moved from the source page's history to the destination page's history. If omitted, all revisions before the timestamp parameter (or the entire history if neither are specified) will be merged into the destination page. May specify "timestamp|revid" to split two revisions with the same timestamp.

token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
Oldpage のすべての履歴を Newpage に統合する。
api.php?action=mergehistory&from=Oldpage&to=Newpage&token=123ABC&reason=Reason [サンドボックスで開く]
Merge the page revisions of Oldpage dating up to 2015年12月31日T04:37:41Z into Newpage.
api.php?action=mergehistory&from=Oldpage&to=Newpage&token=123ABC&reason=Reason&timestamp=2015年12月31日T04%3A37%3A41Z [サンドボックスで開く]
https://ja.wikipedia.org/wiki/特別:ApiHelp」から取得