# EditResponse

What an edit did, operation by operation, and the file after it.

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

## Fields

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

| Field | Type | Description |
|---|---|---|
| `success` | `boolean` | Whether all operations succeeded. |
| `operationResults` | [`EditOperationResult`](https://docs.maitento.com/reference/types/edit-operation-result.md)`[]` | Results for each operation. |
| `file` | [`FileSystemFile`](https://docs.maitento.com/reference/types/file-system-file.md)`\| null` | The file after edits were applied. |

## Example

```json
{
  "success": false,
  "operationResults": [
    {
      "success": false,
      "error": "...",
      "replacementCount": 0
    }
  ],
  "file": {
    "size": 0,
    "name": "...",
    "path": "...",
    "dateCreated": "2026-10-26T12:00:00.0000000Z",
    "dateModified": "2026-10-26T12:00:00.0000000Z"
  }
}
```

## Where it's used

- [`vfs.open(name).edit`](https://docs.maitento.com/reference/api/vfs.md) (`POST /namespaces/{namespaceName}/vfs/by-name/{name}/files/edit`)
- [`vfs.openById(id).edit`](https://docs.maitento.com/reference/api/vfs.md) (`POST /vfs/by-id/{id}/files/edit`)
