Skip to content
v0.5.1GitHub

Using

Imports documents from an NDJSON body in atomic batches; bulk writes take no preconditions and are not subject to `require_conditional_writes`.

applies to v0.5.1
POST
/store-api/json/{domain}/bulk
curl --request POST \
--url https://example.com/store-api/json/example/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data example
domain
required
string

JSON domain

NDJSON — one document per line, optional _key field

Media typetext/plain
string

Import summary

Media typeapplication/json
object
errors
required
Array<object>
object
error
required
string
key
required

Document key or “line N” for parse errors.

string
failed
required
integer format: int64
imported
required
integer format: int64

Example generated

{
"errors": [
{
"error": "example",
"key": "example"
}
],
"failed": 1,
"imported": 1
}

Domain not found

Media typetext/plain
string

Domain is being deleted

Media typetext/plain
string

JSON engine disabled

Media typetext/plain
string

Insufficient Storage — disk space or memory runs short; the write was not applied. Reads go on; retry after the seconds in Retry-After.

Media typetext/plain
string
Retry-After
integer