corrected docs for /config/save to /api/config/save (#16077)

This commit is contained in:
glossyio 2025-01-21 15:52:42 -08:00 committed by GitHub
parent b5e5127d48
commit 12e62488c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,16 +203,16 @@ When frigate starts up, it checks whether your config file is valid, and if it i
### Via API ### Via API
Frigate can accept a new configuration file as JSON at the `/config/save` endpoint. When updating the config this way, Frigate will validate the config before saving it, and return a `400` if the config is not valid. Frigate can accept a new configuration file as JSON at the `/api/config/save` endpoint. When updating the config this way, Frigate will validate the config before saving it, and return a `400` if the config is not valid.
```bash ```bash
curl -X POST http://frigate_host:5000/config/save -d @config.json curl -X POST http://frigate_host:5000/api/config/save -d @config.json
``` ```
if you'd like you can use your yaml config directly by using [`yq`](https://github.com/mikefarah/yq) to convert it to json: if you'd like you can use your yaml config directly by using [`yq`](https://github.com/mikefarah/yq) to convert it to json:
```bash ```bash
yq r -j config.yml | curl -X POST http://frigate_host:5000/config/save -d @- yq r -j config.yml | curl -X POST http://frigate_host:5000/api/config/save -d @-
``` ```
### Via Command Line ### Via Command Line