# Not able to add a new field (nested) in existing index (ES 7.1)

**URL:** <https://discuss.elastic.co/t/not-able-to-add-a-new-field-nested-in-existing-index-es-7-1/308349>\
**Category:** Elasticsearch\
**Created:** [June 28, 2022, 11:24am UTC](https://discuss.elastic.co/t/not-able-to-add-a-new-field-nested-in-existing-index-es-7-1/308349 "2022-06-28T11:24:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravip](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@Ravip](https://discuss.elastic.co/u/Ravip)\
**Post date:** [June 28, 2022, 11:24am UTC](https://discuss.elastic.co/t/not-able-to-add-a-new-field-nested-in-existing-index-es-7-1/308349/1 "2022-06-28T11:24:31Z")

</div>

```auto
{
  "index": "myindex",
  "body": {
    "properties": {
      "tags": {
        "type": "nested"
      }
    }
  }
}

```

Output: **Caught exception: type is required for Put**

```auto
{
  "index": "myindex",
  "type": "_doc",
  "include_type_name": "ignore_conflicts",
  "ignore_conflicts": true,
  "body": {
    "properties": {
      "tags": {
        "type": "nested"
      }
    }
  }
}

```

Caught exception: "include\_type\_name" is not a valid parameter. Allowed parameters are "allow\_no\_indices", "client", "custom", "expand\_wildcards", "filter\_path", "human", "ignore\_conflicts", "ignore\_unavailable", "master\_timeout", "timeout", "update\_all\_types"

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [June 28, 2022, 12:56pm UTC](https://discuss.elastic.co/t/not-able-to-add-a-new-field-nested-in-existing-index-es-7-1/308349/2 "2022-06-28T12:56:00Z")

</div>

Hi @Ravip !!

Maybe this [post](https://discuss.elastic.co/t/how-to-set-include-type-name-to-be-true-or-false-by-java-rest-high-client-apm/270365) can help you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 26, 2022, 12:56pm UTC](https://discuss.elastic.co/t/not-able-to-add-a-new-field-nested-in-existing-index-es-7-1/308349/3 "2022-07-26T12:56:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
