mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-28 23:06:13 +02:00
Add ability to toggle camera features via API (#22538)
* Refactor profile to be a generic state setter API * Add tool to chat * Cleanup * Cleanup
This commit is contained in:
@@ -30,10 +30,8 @@ class AppPutRoleBody(BaseModel):
|
||||
role: str
|
||||
|
||||
|
||||
class ProfileSetBody(BaseModel):
|
||||
profile: Optional[str] = Field(
|
||||
default=None, description="Profile name to activate, or null to deactivate"
|
||||
)
|
||||
class CameraSetBody(BaseModel):
|
||||
value: str = Field(..., description="The value to set for the feature")
|
||||
|
||||
|
||||
class MediaSyncBody(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user