Interface: ApiEditResult
Defined in: core/edit.ts:21
The edit object of an action=edit response.
Properties
captcha?
optionalcaptcha?:ApiEditCaptcha
Defined in: core/edit.ts:85
Captcha challenge returned when ConfirmEdit aborted the save. Present only in the in-band failure branch; ApiEditCaptcha.id and ApiEditCaptcha.question are per-request random values.
code?
optionalcode?:string
Defined in: core/edit.ts:75
Machine-readable failure code.
contentmodel?
optionalcontentmodel?:ContentModel
Defined in: core/edit.ts:32
Content model of the page.
info?
optionalinfo?:string
Defined in: core/edit.ts:78
Human-readable failure description.
new?
optionalnew?:true
Defined in: core/edit.ts:35
true when the edit created the page. A Flag.
newrevid?
optionalnewrevid?:number
Defined in: core/edit.ts:53
Revision id created by the edit.
newtimestamp?
optionalnewtimestamp?:string
Defined in: core/edit.ts:56
Timestamp of the new revision.
nochange?
optionalnochange?:true
Defined in: core/edit.ts:38
true when the supplied text equaled the current text. A Flag.
oldrevid?
optionaloldrevid?:number
Defined in: core/edit.ts:50
Revision id before the edit; 0 when the page was created.
pageid?
optionalpageid?:number
Defined in: core/edit.ts:26
Page id of the edited page.
result
result:
string&object|"Success"|"Failure"
Defined in: core/edit.ts:23
Outcome of the request. Open union; the failure branch is documented below.
tempusercreated?
optionaltempusercreated?:true
Defined in: core/edit.ts:64
true when the edit auto-created a temporary account for the (formerly
anonymous) editor. A Flag.
Since
MediaWiki 1.41
tempusercreatedredirect?
optionaltempusercreatedredirect?:string
Defined in: core/edit.ts:72
Full URL to redirect to after a temporary-account auto-creation. Present only alongside tempusercreated.
Since
MediaWiki 1.41
title?
optionaltitle?:string
Defined in: core/edit.ts:29
Normalized page title.
watched?
optionalwatched?:true
Defined in: core/edit.ts:41
true when the page was added to the user's watchlist. A Flag.
watchlistexpiry?
optionalwatchlistexpiry?:string
Defined in: core/edit.ts:47
When the watch applied by this edit expires. Only alongside watched, and only when the watch carries an expiry.