미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/API
action=revisiondelete
(main | revisiondelete)
- 이 모듈은 read 권한을 요구합니다.
 - 이 모듈은 write 권한을 요구합니다.
 - 이 모듈은 POST 요청만을 허용합니다.
 - 출처: MediaWiki
 - 라이선스: GPL-2.0+
 
Delete and undelete revisions.
변수:
- type
 Type of revision deletion being performed.
- 이 변수는 필수 입력 사항입니다.
 - 하나의 값: revision, archive, oldimage, filearchive, logging
 - target
 Page title for the revision deletion, if required for the type.
- ids
 Identifiers for the revisions to be deleted.
- 이 변수는 필수 입력 사항입니다.
 - Separate values with |. Maximum number of values is 50 (500 for bots).
 - hide
 What to hide for each revision.
- 값 ("|"로 구분): content, comment, user
 - show
 What to unhide for each revision.
- 값 ("|"로 구분): content, comment, user
 - suppress
 Whether to suppress data from administrators as well as others.
- 하나의 값: yes, no, nochange
 - 기본값: nochange
 - reason
 Reason for the deletion or undeletion.
- token
 A "csrf" token retrieved from action=query&meta=tokens
- 이 변수는 필수 입력 사항입니다.
 
예시:
- Hide content for revision 12345 on the page Main Page.
 - api.php?action=revisiondelete&target=Main%20Page&type=revision&ids=12345&hide=content&token=123ABC [open in sandbox]
 - 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 [open in sandbox]