Using
Starts a background re-index of the domain (all indexes, or one field).
applies to v0.5.1POST
/store-api/json/{domain}/reindex
const url = 'https://example.com/store-api/json/example/reindex';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"field":"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/reindex \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "field": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”domain
required
string
JSON domain
Request Bodyrequired
Section titled “Request Bodyrequired”Optional field restriction
Media typeapplication/json
object
field
Optional: re-index only this field’s index. Omit for all indexes.
string | null
Example generated
{ "field": "example"}Responses
Section titled “Responses”Re-index started
Media typeapplication/json
object
task_id
required
string
Example generated
{ "task_id": "example"}Malformed request body
Media typetext/plain
string
Domain not found
Media typetext/plain
string
Re-index already running for this domain
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