mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	corrected docs for /config/save to /api/config/save (#16077)
This commit is contained in:
		
							parent
							
								
									b5e5127d48
								
							
						
					
					
						commit
						12e62488c6
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user