# `mix scrypath.settings.hot_apply`
[🔗](https://github.com/szTheory/scrypath/blob/v0.3.5/lib/mix/tasks/scrypath.settings.hot_apply.ex#L1)

Applies a bounded live Meilisearch settings PATCH for one Scrypath schema.

Only `synonyms`, `stop_words`, and `typo_tolerance` are sent (see
**Scrypath.Meilisearch.Settings.hot_apply/3**). This mutates the **live** index.

## Usage

    mix scrypath.settings.hot_apply MyApp.Blog.Post --settings-file path/to/patch.json --ack-live
    mix scrypath.settings.hot_apply MyApp.Blog.Post --settings-file patch.json --ack-live \
      --repo MyApp.Repo --index-prefix tenant

JSON must be a single object (e.g. `{"stopWords": ["the"]}`). Prefer file
mode with restrictive permissions (`chmod 600`) when the JSON is sensitive.

Failures raise `Mix.Error` (same style as `scrypath.settings.read`).

TUNE14-01.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
