Skip to main content

Create Event

POST 

https://demo.frigate.video/api/events/:camera_name/:label/create

Create Event

Request

Path Parameters

    camera_name Camera Namerequired
    label Labelrequired

Body

    source_type object
    anyOf
    string
    sub_label object
    anyOf
    string
    score object
    anyOf
    number
    duration object
    anyOf
    integer
    include_recording object
    anyOf
    boolean
    draw object
    anyOf
    object

Responses

Successful Response

Schema
    successSuccess (boolean)required
    messageMessage (string)required
    event_idEvent Id (string)required
import http.client
import json

conn = http.client.HTTPSConnection("demo.frigate.video")
payload = json.dumps({
"source_type": "string",
"sub_label": "string",
"score": 0,
"duration": 0,
"include_recording": True,
"draw": {}
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
conn.request("POST", "/api/events/:camera_name/:label/create", 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
{
  "source_type": "string",
  "sub_label": "string",
  "score": 0,
  "duration": 0,
  "include_recording": true,
  "draw": {}
}
ResponseClear

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