Skip to content
Navigation

Create an index

Creates the index with the configured policy, or returns it if it already exists. Requires an admin token, or an ingestion token scoped to the index. max_indexes caps how many can exist.

PUT
/indexes/{index}

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • index
    string
    required

    Index name: lowercase letters, digits, underscores and hyphens. The token's index scope applies as well as its source scope.

    maxLength: 63 · minLength: 1 · pattern: ^[a-z0-9][a-z0-9_-]*$

Returns

200

Index exists

JSON
  • name
    string
    required

401

Ingestion or admin token required

403

Index outside token scope

429

Capacity exhausted

Type to search…

↑↓ navigate↵ selectEsc close