미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/API
action=edit
- 이 모듈은 read 권한을 요구합니다.
 - 이 모듈은 write 권한을 요구합니다.
 - 이 모듈은 POST 요청만을 허용합니다.
 - 출처: MediaWiki
 - 라이선스: GPL-2.0-or-later
 
문서를 만들고 편집합니다.
- title
 편집할 문서의 제목. pageid과 같이 사용할 수 없습니다.
- pageid
 편집할 문서의 문서 ID입니다. title과 함께 사용할 수 없습니다.
- Type: integer
 - section
 문단 번호입니다. 0은 최상위 문단, new는 새 문단입니다.
- sectiontitle
 새 문단을 위한 제목.
- text
 문서 내용.
- summary
 편집 요약. 또한 section=new 및 sectiontitle이 설정되어 있지 않을 때 문단 제목.
- tags
 이 판에 적용할 태그를 변경합니다.
- 값 (|로 구분): 또는 다른 문자열:
 - minor
 이 편집을 사소한 편집으로 표시합니다.
- Type: boolean (details)
 - notminor
 사소하지 않은 편집.
- Type: boolean (details)
 - bot
 이 편집을 봇 편집으로 표시.
- Type: boolean (details)
 - baserevid
 ID of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions. Self-conflicts cause the edit to fail unless basetimestamp is set.
- Type: integer
 - basetimestamp
 기본 판의 타임스탬프이며, 편집 충돌을 발견하기 위해 사용됩니다. action=query&prop=revisions&rvprop=timestamp를 통해 가져올 수 있습니다.
- 유형: 타임스탬프 (허용되는 포맷)
 - starttimestamp
 편집 과정을 시작할 때의 타임스탬프이며 편집 충돌을 발견하기 위해 사용됩니다. 편집 과정을 시작할 때(예: 문서 내용을 편집으로 불러올 때) curtimestamp를 사용하여 적절한 값을 가져올 수 있습니다.
- 유형: 타임스탬프 (허용되는 포맷)
 - recreate
 중간에 삭제되는 문서에 관한 오류를 모두 무시합니다.
- Type: boolean (details)
 - createonly
 이 페이지가 이미 존재하면 편집하지 않습니다.
- Type: boolean (details)
 - nocreate
 페이지가 존재하지 않으면 오류를 출력합니다.
- Type: boolean (details)
 - watch
 - 구식입니다.
 문서를 현재 사용자의 주시문서 목록에 추가합니다.
- Type: boolean (details)
 - unwatch
 - 구식입니다.
 문서를 현재 사용자의 주시문서 목록에서 제거합니다.
- Type: boolean (details)
 - watchlist
 현재 사용자의 주시목록에서 문서를 무조건적으로 추가하거나 제거하거나, 환경 설정을 사용하거나 주시를 변경하지 않습니다.
- 다음 값 중 하나: nochange, preferences, unwatch, watch 또는 다른 문자열: nochange, preferences, unwatch, watch
 - 기본값: preferences
 - md5
 The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.
- prependtext
 이 텍스를 문서의 처음에 추가합니다. text를 무효로 합니다.
- appendtext
 이 텍스트를 문서의 끝에 추가합니다. text를 무효로 합니다.
새 문단을 추가하려면 이 변수 대신 section=new를 사용하십시오.
- undo
 이 판의 편집을 취소합니다. text, prependtext, appendtext를 무효로 합니다.
- Type: integer
 - The value must be no less than 0.
 - undoafter
 undo에서부터 이 판까지의 모든 판의 편집을 취소합니다. 설정하지 않으면 하나의 판만 편집을 취소합니다.
- Type: integer
 - The value must be no less than 0.
 - redirect
 자동으로 넘겨주기를 처리합니다.
- Type: boolean (details)
 - contentformat
 입력 텍스트에 사용할 내용 직렬화 포맷입니다.
- 다음 값 중 하나: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown 또는 다른 문자열: application/json, application/octet-stream, application/unknown, application/x-binary, text/css, text/javascript, text/plain, text/unknown, text/x-wiki, unknown/unknown
 - contentmodel
 새 콘텐츠의 콘텐츠 모델.
- 다음 값 중 하나: GadgetDefinition, Scribunto, css, javascript, json, text, unknown, wikitext 또는 다른 문자열: GadgetDefinition, Scribunto, css, javascript, json, text, unknown, wikitext
 - token
 "csrf" 토큰은 action=query&meta=tokens에서 가져옵니다
토큰은 무조건 마지막 변수로 보내거나 적어도 text 변수 뒤에 보내는 것이 좋습니다.
- 이 변수는 필수입니다.
 - captchaword
 CAPTCHA에 응답
- captchaid
 이전 요청의 CAPTCHA ID
- 문서 편집
 - api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&baserevid=1234567&token=123ABC [연습장에서 열기]
 - 문서의 맨 앞에 __NOTOC__를 추가합니다.
 - api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=__NOTOC__%0A&basetimestamp=2007-08-24T12:34:54Z&token=123ABC [연습장에서 열기]
 - 자동 편집요약으로 13579판에서 13585판까지 되돌리기.
 - api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=2007-08-24T12:34:54Z&token=123ABC [연습장에서 열기]