# EditOperationResult

Result of a single edit operation.

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `success` | `boolean` | Whether the operation succeeded. |
| `error` | `string \| null` | Error message if operation failed. |
| `replacementCount` | `integer` | Number of replacements made (for a `replace` operation with `replaceAll` true). |

## Example

```json
{
  "success": false,
  "error": "...",
  "replacementCount": 0
}
```

## Where it's used

- Inside [`BatchEditFileResult`](https://docs.maitento.com/reference/types/batch-edit-file-result.md)
- Inside [`EditResponse`](https://docs.maitento.com/reference/types/edit-response.md)
