> 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.

# Interface: ApiEditResult

Defined in: [core/edit.ts:21](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L21)

The `edit` object of an `action=edit` response.

## Properties

### captcha?

> `optional` **captcha?**: [`ApiEditCaptcha`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEditCaptcha.md)

Defined in: [core/edit.ts:85](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L85)

Captcha challenge returned when ConfirmEdit aborted the save. Present only
in the in-band failure branch; [ApiEditCaptcha.id](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEditCaptcha.md#id) and
[ApiEditCaptcha.question](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEditCaptcha.md#question) are per-request random values.

***

### code?

> `optional` **code?**: `string`

Defined in: [core/edit.ts:75](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L75)

Machine-readable failure code.

***

### contentmodel?

> `optional` **contentmodel?**: [`ContentModel`](https://types-mediawiki-response.pages.dev/zh/api/core/ContentModel.md)

Defined in: [core/edit.ts:32](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L32)

Content model of the page.

***

### info?

> `optional` **info?**: `string`

Defined in: [core/edit.ts:78](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L78)

Human-readable failure description.

***

### new?

> `optional` **new?**: `true`

Defined in: [core/edit.ts:35](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L35)

`true` when the edit created the page. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

***

### newrevid?

> `optional` **newrevid?**: `number`

Defined in: [core/edit.ts:53](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L53)

Revision id created by the edit.

***

### newtimestamp?

> `optional` **newtimestamp?**: `string`

Defined in: [core/edit.ts:56](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L56)

Timestamp of the new revision.

***

### nochange?

> `optional` **nochange?**: `true`

Defined in: [core/edit.ts:38](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L38)

`true` when the supplied text equaled the current text. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

***

### oldrevid?

> `optional` **oldrevid?**: `number`

Defined in: [core/edit.ts:50](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L50)

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

***

### pageid?

> `optional` **pageid?**: `number`

Defined in: [core/edit.ts:26](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L26)

Page id of the edited page.

***

### result

> **result**: `string` & `object` | `"Success"` | `"Failure"`

Defined in: [core/edit.ts:23](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L23)

Outcome of the request. Open union; the failure branch is documented below.

***

### tempusercreated?

> `optional` **tempusercreated?**: `true`

Defined in: [core/edit.ts:64](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L64)

`true` when the edit auto-created a temporary account for the (formerly
anonymous) editor. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

#### Since

MediaWiki 1.41

***

### tempusercreatedredirect?

> `optional` **tempusercreatedredirect?**: `string`

Defined in: [core/edit.ts:72](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L72)

Full URL to redirect to after a temporary-account auto-creation.
Present only alongside [tempusercreated](#tempusercreated).

#### Since

MediaWiki 1.41

***

### title?

> `optional` **title?**: `string`

Defined in: [core/edit.ts:29](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L29)

Normalized page title.

***

### watched?

> `optional` **watched?**: `true`

Defined in: [core/edit.ts:41](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L41)

`true` when the page was added to the user's watchlist. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

***

### watchlistexpiry?

> `optional` **watchlistexpiry?**: `string`

Defined in: [core/edit.ts:47](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/edit.ts#L47)

When the watch applied by this edit expires. Only alongside
[watched](#watched), and only when the watch carries an expiry.
