/v1/ingest-sessions (POST)
POST
/v1/ingest-sessions
const url = 'https://api.reindeer.example.tr/v1/ingest-sessions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"partition":"example","mode":"initial","pointers":{"id":"/order_id","author":"/buyer_id","ts":"/placed_at","ts_format":"unix"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.reindeer.example.tr/v1/ingest-sessions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "partition": "example", "mode": "initial", "pointers": { "id": "/order_id", "author": "/buyer_id", "ts": "/placed_at", "ts_format": "unix" } }'Scope ingest:write. Initial sessions publish on commit; incremental sessions publish each verified batch.
Authorizations
Bölüm başlığı “Authorizations”Parameters
Bölüm başlığı “Parameters”Header Parameters
Bölüm başlığı “Header Parameters”Idempotency-Key
string
Request Bodyrequired
Bölüm başlığı “Request Bodyrequired”Media typeapplication/json
object
partition
required
string
mode
required
string
pointers
required
object
id
required
JSON pointer to the record id. The value may be a string of at most 256 bytes or a number.
string
Example
/order_idauthor
required
JSON pointer to the record’s owner: the person, account or device it belongs to. Deletions of kind author use it.
string
Example
/buyer_idts
required
string
Example
/placed_atts_format
required
string
Responses
Bölüm başlığı “Responses”Session opened