Sluby
REST APIReconciliation

Latest reconciliation run.

Admins get the whole run, orphaned ids included; members get only the missing objects of the workspace’s assets (see ReconciliationRun).

GET
/api/v1/reconciliation

Admins get the whole run, orphaned ids included; members get only the missing objects of the workspace’s assets (see ReconciliationRun).

Authorization

bearerAuth
headerAuthorizationBearer <token>

A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.

Response Body

Latest run.

application/json
  1. response

The latest run. Its shape depends on scope: admins (deployment) get the whole run; members (account) get only the drift of the workspace’s assets, because the deployment-wide counts, orphans and failure text describe the server’s setup. Objects the indexer pinned or unpinned within the hour before the run are work in progress and in neither list, so the in-sync count plus the orphan or missing count can be lower than the indexer or database count.

scope*unknown
id*string
Formatuuid
started_at*string
Formatdate-time
finished_at*string
Formatdate-time
status*string
Value in"ok""drift""failed"
db_object_count*integer
indexer_object_count*integer
in_sync_count*integer
orphan_count*integer
missing_count*integer
error_message*string|null
created_at*string
Formatdate-time
missing_ids*array<string>

Tracked by an asset, absent from the indexer.

missing_objects*array<>

Each of missing_ids, in the same order, with the video that holds it, so a report can link to it. video_asset_id and title are null when no live video holds the object any more (its video was deleted since the run).

orphaned_ids*array<string>

Pinned on the indexer, tracked by no asset.

Example Request
curl -X GET 'https://sluby.example.com/api/v1/reconciliation'
Example Response
{  "scope": "deployment",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "started_at": "2019-08-24T14:15:22Z",  "finished_at": "2019-08-24T14:15:22Z",  "status": "ok",  "db_object_count": 0,  "indexer_object_count": 0,  "in_sync_count": 0,  "orphan_count": 0,  "missing_count": 0,  "error_message": "string",  "created_at": "2019-08-24T14:15:22Z",  "missing_ids": [    "string"  ],  "missing_objects": [    {      "object_id": "string",      "video_asset_id": "54cbbdd6-c2f9-402b-808d-71f69081f2d7",      "title": "string"    }  ],  "orphaned_ids": [    "string"  ]}