Skip to content

Ingest Data

POST
/v2/data/in/{dataset_id}
curl --request POST \
--url http://localhost:3000/v2/data/in/example \
--header 'Content-Type: application/json' \
--data '{ "id": "api.data.in", "ver": "v2", "ts": "1711966306164", "params": { "msgid": "e180ecac-8f41-4f21-9a21-0b3a1a368917" }, "data": { "eid": "INTERACT", "date": "2022-01-01", "ver": "3.0", "syncts": 1668591949682, "ets": 1668591949682 } }'
dataset_id
required
string

Unique identifier for the dataset

Media type application/json
object
Example
{
"id": "api.data.in",
"ver": "v2",
"ts": "1711966306164",
"params": {
"msgid": "e180ecac-8f41-4f21-9a21-0b3a1a368917"
},
"data": {
"eid": "INTERACT",
"date": "2022-01-01",
"ver": "3.0",
"syncts": 1668591949682,
"ets": 1668591949682
}
}

OK

Media type application/json
object
Examples

Success: Data ingested successfully

{
"id": "api.data.in",
"ver": "v2",
"ts": "2024-05-30T23:35:48+05:30",
"params": {
"status": "SUCCESS",
"msgid": "e180ecac-8f41-4f21-9a21-0b3a1a368917",
"resmsgid": "9a44ac5b-ef82-46f7-92c5-c5b39ef88764"
},
"responseCode": "OK",
"result": {
"message": "Data ingested successfully"
}
}
X-Powered-By
string
Example
Express
Content-Length
integer
Example
261
ETag
string
Example
W/"105-UtaCmh0qZMBRBdniNq74Gr+4YAo"
Date
string
Example
Thu, 30 May 2024 18:05:48 GMT
Connection
string
Example
keep-alive
Keep-Alive
string
Example
timeout=5

Bad Request

Media type application/json
object
Example
{
"id": "api.data.in",
"ver": "v2",
"ts": "2024-05-30T23:33:32+05:30",
"params": {
"status": "FAILED",
"resmsgid": "acf07609-77de-4ab5-81ea-42e41b8b95ff"
},
"responseCode": "BAD_REQUEST",
"result": {},
"error": {
"code": "DATA_INGESTION_INVALID_INPUT",
"message": "#required should have required property 'id'",
"trace": ""
}
}
X-Powered-By
string
Example
Express
Content-Length
integer
Example
300
ETag
string
Example
W/"12c-GNCIUUDxOZD3UfM311sjnmFIgPc"
Date
string
Example
Thu, 30 May 2024 18:03:32 GMT
Connection
string
Example
keep-alive
Keep-Alive
string
Example
timeout=5

Not Found

Media type application/json
object
Examples

Entry topic not found

{
"id": "api.data.in",
"ver": "v2",
"ts": "2024-04-18T15:47:00+05:30",
"params": {
"status": "FAILED",
"msgid": "e180ecac-8f41-4f21-9a21-0b3a1a368917",
"resmsgid": "11c32a3a-fdeb-4e00-a9cf-f6433ade5608"
},
"responseCode": "BAD_REQUEST",
"result": {},
"error": {
"code": "TOPIC_NOT_FOUND",
"message": "Entry topic is not defined",
"trace": ""
}
}
X-Powered-By
string
Example
Express
Content-Length
integer
Example
316
ETag
string
Example
W/"13c-O9iirC/EyneYXQzth7iwEEy1UV4"
Date
string
Example
Thu, 18 Apr 2024 10:17:00 GMT
Connection
string
Example
keep-alive
Keep-Alive
string
Example
timeout=5