---
title: "table.changes.since: List the records changed since a version — Table kit command — Kition"
description: "Reads the records created, updated and deleted since a version, with who made each change."
canonical: "https://developer.kition.ai/docs/kits/table/commands/table.changes.since"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/table/commands/table.changes.since](https://developer.kition.ai/docs/kits/table/commands/table.changes.since)

# table.changes.since

**List the records changed since a version.** Reads the records created, updated and deleted since a version, with who made each change.

- Kit: Table 0.4.0 (.ktable); reference: [Table kit commands](https://developer.kition.ai/docs/kits/table.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `version` | `string` | no | Base64 of a version a previous answer gave; empty for every change. |

## Call through table_run

```text
table_run {
  "path": "<file>.ktable",
  "steps": [{ "command": "table.changes.since" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `version`. table_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `change` | `object \| null` | no | What the call changed, or null. |
| `error` | `object` | no | Why the call failed (A18); the file is as it was. |
| `result` | `object` | no | The records written since the version. |

```json
{
  "additionalProperties": false,
  "description": "The request's own answer is in `result`, beside `change`: what the call changed in the document (null when nothing changed). A failed call answers `error` instead (A18).",
  "properties": {
    "change": {
      "description": "What the call changed, or null.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "What one projection changed in the relational tables, by integer id. Every list is sorted and\nholds no repeats.",
          "properties": {
            "dashboards": {
              "description": "A dashboard, or the base's list of them, changed.",
              "type": "boolean"
            },
            "documentId": {
              "type": "string"
            },
            "origin": {
              "description": "Who wrote it: kind:principal, or a system origin's label.",
              "type": "string"
            },
            "recordsDeleted": {
              "description": "[tableId, rowKey] pairs.",
              "items": {
                "items": {},
                "type": "array"
              },
              "type": "array"
            },
            "recordsReordered": {
              "description": "Tables whose records' positions changed.",
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "recordsUpserted": {
              "description": "[tableId, rowKey] pairs.",
              "items": {
                "items": {},
                "type": "array"
              },
              "type": "array"
            },
            "schema": {
              "description": "Tables whose fields were added, removed, updated, or reordered.",
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "tables": {
              "description": "Tables whose own row changed: created, deleted, renamed, moved, or given a new primary\nfield.",
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "views": {
              "description": "Views created, deleted, updated, or reordered, or whose column widths or visibility\nchanged.",
              "items": {
                "type": "integer"
              },
              "type": "array"
            }
          },
          "required": [
            "tables",
            "schema",
            "views",
            "recordsReordered",
            "dashboards"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "additionalProperties": false,
      "description": "Why the call failed (A18); the file is as it was.",
      "properties": {
        "code": {
          "enum": [
            "invalid-params",
            "invalid-op",
            "invalid-value",
            "not-found",
            "read-only",
            "unknown-command",
            "command-failed",
            "not-open",
            "draft-required",
            "not-allowed",
            "unsupported",
            "unavailable",
            "failed"
          ],
          "type": "string"
        },
        "index": {
          "description": "The failing step or operation.",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "result": {
      "additionalProperties": true,
      "description": "The records written since the version.",
      "properties": {
        "created": {
          "items": {
            "additionalProperties": true,
            "description": "One record a write touched.",
            "properties": {
              "fieldIds": {
                "items": {
                  "description": "A field whose value changed (updates only).",
                  "type": "integer"
                },
                "type": "array"
              },
              "origin": {
                "description": "Who wrote it: kind:principal, or a system origin's label.",
                "type": "string"
              },
              "recordId": {
                "description": "The record's id.",
                "type": "integer"
              },
              "tableId": {
                "description": "The table's id.",
                "type": "integer"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "deleted": {
          "items": {
            "additionalProperties": true,
            "description": "One record a write touched.",
            "properties": {
              "fieldIds": {
                "items": {
                  "description": "A field whose value changed (updates only).",
                  "type": "integer"
                },
                "type": "array"
              },
              "origin": {
                "description": "Who wrote it: kind:principal, or a system origin's label.",
                "type": "string"
              },
              "recordId": {
                "description": "The record's id.",
                "type": "integer"
              },
              "tableId": {
                "description": "The table's id.",
                "type": "integer"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "updated": {
          "items": {
            "additionalProperties": true,
            "description": "One record a write touched.",
            "properties": {
              "fieldIds": {
                "items": {
                  "description": "A field whose value changed (updates only).",
                  "type": "integer"
                },
                "type": "array"
              },
              "origin": {
                "description": "Who wrote it: kind:principal, or a system origin's label.",
                "type": "string"
              },
              "recordId": {
                "description": "The record's id.",
                "type": "integer"
              },
              "tableId": {
                "description": "The table's id.",
                "type": "integer"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "version": {
          "description": "The current version, base64: the next call's `version`.",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "version": {
      "description": "Base64 of a version a previous answer gave; empty for every change.",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from kition-sdk packages/script/kits/table.ts and the kit itself (kition-table@ee73209).
