{
  "create": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create",
      "description": "Create a new document in the index"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/{index}/_create/{id}",
          "methods": [
            "PUT",
            "POST"
          ],
          "parts": {
            "id": {
              "type": "string",
              "description": "Document ID"
            },
            "index": {
              "type": "string",
              "description": "The name of the index"
            }
          }
        }
      ]
    },
    "params": {
      "wait_for_active_shards": {
        "type": "string",
        "default": "1",
        "description": "Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
      },
      "refresh": {
        "type": "enum",
        "options": [
          "true",
          "false",
          "wait_for"
        ],
        "default": "false",
        "description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes."
      },
      "routing": {
        "type": "list",
        "description": "Specific routing value"
      },
      "timeout": {
        "type": "time",
        "default": "1m",
        "description": "Explicit operation timeout"
      },
      "version": {
        "type": "long",
        "description": "Explicit version number for concurrency control"
      },
      "version_type": {
        "type": "enum",
        "options": [
          "internal",
          "external",
          "external_gte"
        ],
        "description": "Specific version type"
      },
      "pipeline": {
        "type": "string",
        "description": "The pipeline id to preprocess incoming documents with"
      },
      "include_source_on_error": {
        "type": "boolean",
        "default": true,
        "description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
      },
      "require_alias": {
        "type": "boolean",
        "default": false,
        "description": "When true, requires destination to be an alias. Default is false"
      },
      "require_data_stream": {
        "type": "boolean",
        "default": false,
        "description": "When true, requires destination to be a data stream (existing or to be created). Default is false"
      }
    },
    "body": {
      "description": "The document",
      "required": true
    }
  }
}
