# Root mapping definition has unsupported parameters

**URL:** <https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/334931>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [June 1, 2023, 9:02am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/334931 "2023-06-01T09:02:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pirogan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pirogan/32/121719_2.png) [@pirogan](https://discuss.elastic.co/u/pirogan)\
**Post date:** [June 1, 2023, 9:02am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/334931/1 "2023-06-01T09:02:19Z")

</div>

cant create an easiest mapping from a doc

```auto
mapping = {
  "mappings": {
    "properties": {
      "age": { "type": "integer" },
      "email": { "type": "keyword" },
      "name": { "type": "text" }
    }
  }
}

index_name = "test_index"

es.indices.put_mapping(index=index_name, body=mapping, doc_type='test')

```

version

elastic-transport==8.4.0

elasticsearch==7.17.9

elasticsearch-dsl==7.4.1

got an error

elasticsearch.exceptions.RequestError: RequestError(400, 'mapper\_parsing\_exception', 'Root mapping definition has unsupported parameters: [mappings : {properties={name={type=text}, age={type=integer}, email={type=keyword}}}]')

---

<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:** [June 29, 2023, 9:02am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/334931/2 "2023-06-29T09:02:29Z")

</div>

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