# Object mapping \[channels.channel\_people\] can't be changed from nested to non-nested

**URL:** <https://discuss.elastic.co/t/object-mapping-channels-channel-people-cant-be-changed-from-nested-to-non-nested/215543>\
**Category:** Elasticsearch\
**Created:** [January 18, 2020, 4:47am UTC](https://discuss.elastic.co/t/object-mapping-channels-channel-people-cant-be-changed-from-nested-to-non-nested/215543 "2020-01-18T04:47:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhilash\_Sathe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhilash_sathe1/32/46158_2.png) [@Abhilash\_Sathe1](https://discuss.elastic.co/u/Abhilash_Sathe1)\
**Post date:** [January 18, 2020, 4:47am UTC](https://discuss.elastic.co/t/object-mapping-channels-channel-people-cant-be-changed-from-nested-to-non-nested/215543/1 "2020-01-18T04:47:04Z")

</div>

I first created a mapping.

```
PUT /my_index/
{
  "mappings": {
    "properties": {
      "channels": {
        "type": "object",
        "properties": {
          "channel_people": {
            "type": "nested",
            "properties": {
              "email": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              },
              "id": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              }
            }
          },
          "subtype": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "channel_type": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "source_type": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      }
    }
  }
}

POST my_index/my_type/12
{
  "channels": [
    {
      "channel_label": "some_value",
      "channel_subtype": "some_value",
      "source_type": "some_value",
      "channel_people": [
        {
          "id": "some_value",
          "email": "some_value"
        },
        {
          "id": "some_value",
          "email": "some_value"
        }
      ],
      "channel_type": "some_value",
      "channel_id": "some_value"
    }
  ]
}

```

After executing POST request, I get `object mapping [channels.channel_people] can't be changed from nested to non-nested`

---

<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:** [February 15, 2020, 4:47am UTC](https://discuss.elastic.co/t/object-mapping-channels-channel-people-cant-be-changed-from-nested-to-non-nested/215543/2 "2020-02-15T04:47:08Z")

</div>

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