# WireWriteResponse (@salmonui/data/json)

> The WireWriteResponse interface of @salmonui/data/json.

Canonical: https://salmonui.dev/docs/reference/data/json/WireWriteResponse

```ts
import type { WireWriteResponse } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/json (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/json.md).

## Reference

Kind: interface

```ts
interface WireWriteResponse {
    readonly v: 1;
    readonly id: string;
    readonly fields?: readonly string[];
    readonly ok?: readonly {
        readonly key: Json;
        readonly index?: number;
        readonly version?: string;
        readonly row?: WireTuple;
    }[];
    readonly errors?: readonly {
        readonly key?: Json;
        readonly index?: number;
        readonly field?: string;
        readonly code: string;
        readonly message: string;
    }[];
    readonly conflicts?: readonly {
        readonly key: Json;
        readonly server: WireTuple;
        readonly version?: string;
    }[];
    readonly total?: number;
    readonly error?: WireError;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `v` | `readonly v: 1;` |  |  |
| `id` | `readonly id: string;` |  |  |
| `fields` | `readonly fields?: readonly string[];` | optional | Header for the tuples echoed in `ok[].row` and `conflicts[].server`. Defaults to the request's fields. |
| `ok` | `readonly ok?: readonly {     readonly key: Json;     readonly index?: number;     readonly version?: string;     readonly row?: WireTuple; }[];` | optional | Applied rows. `index` identifies an added tuple; `row` is the server echo (real key, computed fields). |
| `errors` | `readonly errors?: readonly {     readonly key?: Json;     readonly index?: number;     readonly field?: string;     readonly code: string;     readonly message: string; }[];` | optional |  |
| `conflicts` | `readonly conflicts?: readonly {     readonly key: Json;     readonly server: WireTuple;     readonly version?: string; }[];` | optional |  |
| `total` | `readonly total?: number;` | optional |  |
| `error` | `readonly error?: WireError;` | optional |  |
