SmartGare
API referenceEndpoints

Record what a source register said

Stores every row as written and opens a conflict wherever two registers disagree. It never picks a winner.

POST/referential/v1/import-staging/batches

Stores every row as written and opens a conflict wherever two registers disagree. It never picks a winner.

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/import-staging/batches" \  -H "Content-Type: application/json" \  -d '{    "sourceRegister": "string",    "fileFingerprint": "string",    "importedAt": "2019-08-24T14:15:22Z",    "observations": [      {        "sourceRowRef": "string",        "subjectKind": "string",        "subjectKey": "string",        "attribute": "string",        "rawValue": "string"      }    ]  }'
{  "batchId": "string",  "observationsRecorded": 0,  "conflictsOpened": [    "string"  ]}