Skip to content
Merged
Changes from 1 commit
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

### Field "dynamic"
Comment thread
ariamarble marked this conversation as resolved.
Outdated

To enforce document structure to match the structure of the index mapping, specify property "dynamic" and set its value to "strict":
Comment thread
ariamarble marked this conversation as resolved.
Outdated

```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