Skip to content
v0.5.1GitHub

Using

Creates an index definition. Existing documents are NOT back-indexed — trigger a re-index for that.

applies to v0.5.1
POST
/store-api/json/{domain}/indexes
curl --request POST \
--url https://example.com/store-api/json/example/indexes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "field": "example", "type": "example" }'
domain
required
string

JSON domain

Media typeapplication/json
object
field
required

JSON field path, dot notation for nested fields (e.g. “address.city”).

string
type
required

Value type: “string” | “number” | “boolean”.

string

Example generated

{
"field": "example",
"type": "example"
}

Index definition created

Media typeapplication/json
object
created_at
required
integer format: int64
field
required
string
type
required
string

Example generated

{
"created_at": 1,
"field": "example",
"type": "example"
}

Invalid field or type

Media typetext/plain
string

Index already exists

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