curl --request POST \
--url http://localhost:3000/v1/scan-history \
--header 'Content-Type: application/json' \
--data '
{
"entries": [
{
"id": "<string>",
"timestamp": "<string>",
"objectType": "<string>",
"rawData": "<string>",
"name": "<string>",
"lookupCode": "<string>"
}
]
}
'{
"success": true,
"added": 123,
"error": "<string>",
"message": "<string>"
}Add scan history entries in batch (upsert on conflict).
curl --request POST \
--url http://localhost:3000/v1/scan-history \
--header 'Content-Type: application/json' \
--data '
{
"entries": [
{
"id": "<string>",
"timestamp": "<string>",
"objectType": "<string>",
"rawData": "<string>",
"name": "<string>",
"lookupCode": "<string>"
}
]
}
'{
"success": true,
"added": 123,
"error": "<string>",
"message": "<string>"
}