Skip to main content

Set Sub Label

POST 

https://demo.frigate.video/api/events/:event_id/sub_label

Set Sub Label

Request​

Path Parameters

    event_id Event Idrequired

Bodyrequired

    subLabelSub label (string)required

    Possible values: <= 100 characters

    subLabelScore object
    anyOf
    number

    Possible values: > 0 and <= 1

Responses​

Successful Response

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

conn = http.client.HTTPSConnection("demo.frigate.video")
payload = json.dumps({
"subLabel": "string",
"subLabelScore": 0
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
conn.request("POST", "/api/events/:event_id/sub_label", 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
Body required
{
  "subLabel": "string",
  "subLabelScore": 0
}
ResponseClear

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