Delete Events
DELETEhttps://demo.frigate.video/api/events/
Delete Events
Request​
- application/json
Bodyrequired
event_idsstring[]required
Responses​
- 200
- 422
Successful Response
- application/json
- Schema
- Example (auto)
Schema
successSuccess (boolean)required
deleted_eventsstring[]required
not_found_eventsstring[]required
{
  "success": true,
  "deleted_events": [
    "string"
  ],
  "not_found_events": [
    "string"
  ]
}
Validation Error
- application/json
- Schema
- Example (auto)
Schema
detail object[]
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
- python
- nodejs
- javascript
- curl
- rust
- HTTP.CLIENT
- REQUESTS
import http.client
import json
conn = http.client.HTTPSConnection("demo.frigate.video")
payload = json.dumps({
  "event_ids": [
    "string"
  ]
})
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}
conn.request("DELETE", "/api/events/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
ResponseClear