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.1POST
/store-api/json/{domain}/bulk
const url = 'https://example.com/store-api/json/example/bulk';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/plain'}, body: 'example'};
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://example.com/store-api/json/example/bulk \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: text/plain' \ --data exampleAuthorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”domain
required
string
JSON domain
Request Bodyrequired
Section titled “Request Bodyrequired”NDJSON — one document per line, optional _key field
Media typetext/plain
string
Responses
Section titled “Responses”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
Headers
Section titled “Headers”Retry-After
integer