Skip to main content
GET
/
v1
/
tenants
/
{tenant_id}
/
subjects
/
{subject_type}
/
{subject_id}
/
diff
Get diff between snapshot versions
curl --request GET \
  --url https://tally-platform-api-xwka6vu2kq-ue.a.run.app/v1/tenants/{tenant_id}/subjects/{subject_type}/{subject_id}/diff \
  --header 'Authorization: Bearer <token>'
{
  "from_version": 123,
  "to_version": 123,
  "format": "rfc6902",
  "ops": [
    "<unknown>"
  ],
  "change_summary": {
    "total_ops": 123,
    "adds": 123,
    "removes": 123,
    "replaces": 123,
    "paths_changed": 123
  }
}

Authorizations

Authorization
string
header
required

Firebase Auth JWT issued by Google Identity Platform. Obtain a token by signing in at your app domain and calling firebase.auth().currentUser.getIdToken().

Path Parameters

tenant_id
string
required

Tenant identifier.

subject_type
enum<string>
required

Subject type discriminator.

Available options:
entity,
individual
subject_id
string
required

Stable subject identifier within its type namespace.

Query Parameters

from_version
integer
required

Starting snapshot version (inclusive).

to_version
integer
required

Ending snapshot version (inclusive).

include
string
default:/subject,/attributes

Comma-separated JSON Pointer prefixes to include in the diff.

include_attribution
enum<string>
default:changed_only
Available options:
none,
changed_only

Response

Diff result.

from_version
integer
to_version
integer
format
enum<string>
Available options:
rfc6902
ops
any[]
change_summary
object