For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiEditResult.md.
  • 中文
  • Interface: ApiEditResult

    Defined in: core/edit.ts:21

    The edit object of an action=edit response.

    Properties

    captcha?

    optional captcha?: 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?

    optional code?: string

    Defined in: core/edit.ts:75

    Machine-readable failure code.


    contentmodel?

    optional contentmodel?: ContentModel

    Defined in: core/edit.ts:32

    Content model of the page.


    info?

    optional info?: string

    Defined in: core/edit.ts:78

    Human-readable failure description.


    new?

    optional new?: true

    Defined in: core/edit.ts:35

    true when the edit created the page. A Flag.


    newrevid?

    optional newrevid?: number

    Defined in: core/edit.ts:53

    Revision id created by the edit.


    newtimestamp?

    optional newtimestamp?: string

    Defined in: core/edit.ts:56

    Timestamp of the new revision.


    nochange?

    optional nochange?: true

    Defined in: core/edit.ts:38

    true when the supplied text equaled the current text. A Flag.


    oldrevid?

    optional oldrevid?: number

    Defined in: core/edit.ts:50

    Revision id before the edit; 0 when the page was created.


    pageid?

    optional pageid?: 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?

    optional tempusercreated?: 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?

    optional tempusercreatedredirect?: 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?

    optional title?: string

    Defined in: core/edit.ts:29

    Normalized page title.


    watched?

    optional watched?: true

    Defined in: core/edit.ts:41

    true when the page was added to the user's watchlist. A Flag.


    watchlistexpiry?

    optional watchlistexpiry?: 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.