From 12e62488c6fe3c454a0f8110b2979658766b9783 Mon Sep 17 00:00:00 2001 From: glossyio <131053801+glossyio@users.noreply.github.com> Date: Tue, 21 Jan 2025 15:52:42 -0800 Subject: [PATCH] corrected docs for /config/save to /api/config/save (#16077) --- docs/docs/configuration/advanced.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/configuration/advanced.md b/docs/docs/configuration/advanced.md index f18e943df..edffa052f 100644 --- a/docs/docs/configuration/advanced.md +++ b/docs/docs/configuration/advanced.md @@ -203,16 +203,16 @@ When frigate starts up, it checks whether your config file is valid, and if it i ### 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 -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: ```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