Append JSONL Records
curl --request POST \
--url https://api.zerodrive.dev/v1/primitives/append-jsonl \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"records": [
{}
],
"dedupe_key": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', records: [{}], dedupe_key: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/primitives/append-jsonl', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/primitives/append-jsonl"
payload = {
"path": "<string>",
"records": [{}],
"dedupe_key": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Append JSONL Records
Atomically validate and append JSON records to a .jsonl file with optional unique-key deduplication.
POST
https://api.zerodrive.dev
/
v1
/
primitives
/
append-jsonl
Append JSONL Records
curl --request POST \
--url https://api.zerodrive.dev/v1/primitives/append-jsonl \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"records": [
{}
],
"dedupe_key": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', records: [{}], dedupe_key: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/primitives/append-jsonl', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/primitives/append-jsonl"
payload = {
"path": "<string>",
"records": [{}],
"dedupe_key": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
