Skip to content

Change data feed between two versions (both included, end defaults to latest): one entry

POST
/datanotes/operations/table_changes/
curl --request POST \
--url https://example.com/datanotes/operations/table_changes/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "table": "example", "start_version": 1, "end_version": null }'

Change data feed between two versions (both included, end defaults to latest): one entry per row change with its values plus _change_type (insert, delete, update_preimage, update_postimage, metadata), _commit_version, _commit_timestamp, _operation, path. Use it to answer “what changed since …” without diffing full tables.

Media typeapplication/json
object
table
required
string
start_version
required
integer
end_version
Any of:
integer

Done.

Media typeapplication/json
object
table
required

Qualified table.

string
changes
required

Oldest first.

Array<object>

A change; row changes also carry the row’s column values.

object
_change_type
required
string
Allowed values: insert delete update_preimage update_postimage metadata
_commit_version
required
integer
_commit_timestamp
required
string
_operation
required
string
path

Row note path (row changes).

string
key
additional properties
any

Example

{
"changes": [
{
"_change_type": "insert"
}
]
}

Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Missing or wrong bearer token.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Unknown table, view, migration, note or folder.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Ambiguous table name: it matches several tables (paths or tables lists them).

Media typeapplication/json
object
error
required
string
paths

The tables’ folders the name matches.

Array<string>
tables

The qualified tables the name matches.

Array<string>

Example generated

{
"error": "example",
"paths": [
"example"
],
"tables": [
"example"
]
}

Unexpected error.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}