Skip to main content

Update trigger embedding

PUT 

https://demo.frigate.video/api/trigger/embedding/:camera_name/:name

Updates a trigger embedding for a specific trigger. Returns a success message or an error if the trigger is not found.

Request​

Path Parameters

    camera_name Camera Namerequired
    name Namerequired

Bodyrequired

    typeTriggerType (string)required

    Possible values: [thumbnail, description]

    dataData (string)required
    thresholdThreshold (number)

    Possible values: >= 0 and <= 1

    Default value: 0.5

Responses​

Successful Response

Schema
    objectobject
import http.client
import json

conn = http.client.HTTPSConnection("demo.frigate.video")
payload = json.dumps({
"type": "thumbnail",
"data": "string",
"threshold": 0.5
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
conn.request("PUT", "/api/trigger/embedding/:camera_name/:name", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://demo.frigate.video/api
Parameters
— pathrequired
— pathrequired
Body required
{
  "type": "thumbnail",
  "data": "string",
  "threshold": 0.5
}
ResponseClear

Click the Send API Request button above and see the response here!