Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions _api-reference/index-apis/put-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@ The request body must contain `properties`, which has all of the mappings that y
}
```

## Optional request body fields

### dynamic

You can make the document structure match the structure of the index mapping by setting the `dynamic` request body field to `strict`, as seen in the following example:

```json
{
"properties":{
"dynamic": "strict",
"color":{
"type": "text"
}
}
}
```

## Optional query parameters

Optionally, you can add query parameters to make a more specific request. For example, to skip any missing or closed indexes in the response, you can add the `ignore_unavailable` query parameter to your request as follows:
Expand Down