{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mongodb/main/json-schema/mongodb-search-index-create-request-schema.json",
  "title": "SearchIndexCreateRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mongodb-atlas-search-api-openapi.yml#/components/schemas/SearchIndexCreateRequest",
  "properties": {
    "collectionName": {
      "description": "Label that identifies the collection to create an Atlas Search index in.",
      "type": "string"
    },
    "database": {
      "description": "Label that identifies the database that contains the collection to create an Atlas Search index in.",
      "type": "string"
    },
    "name": {
      "description": "Label that identifies this index. Within each namespace, names of all indexes in the namespace must be unique.",
      "type": "string"
    },
    "type": {
      "description": "Type of the index. The default type is search.",
      "enum": [
        "search",
        "vectorSearch"
      ],
      "type": "string"
    }
  },
  "required": [
    "collectionName",
    "database",
    "name"
  ],
  "type": "object"
}