API endpoint that allows events to be viewed or edited.

GET /api/v2/events/51/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 51,
    "name": "Tuesday, Jul 19-20 2022",
    "details": "https://api.beluga.insectai.org/api/v2/events/51/?format=api",
    "deployment": {
        "id": 12,
        "name": "Newfoundland - Unit 2",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/12/?format=api",
        "user_permissions": []
    },
    "start": "2022-07-19T22:19:19",
    "end": "2022-07-20T04:59:48",
    "day": "2022-07-19",
    "date_label": "Jul 19-20 2022",
    "duration": "24029.0",
    "duration_label": "6 hours 40 min",
    "captures_count": 11066,
    "detections_count": 988,
    "occurrences_count": 810,
    "stats": {
        "detections_max_count": 42,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=51&ordering=timestamp",
    "first_capture": {
        "id": 250785,
        "details": "https://api.beluga.insectai.org/api/v2/captures/250785/?format=api",
        "url": "https://static.dev.insectai.org/ami-trapdata/newfoundland/Unit-2/Jul 19/20220719221919-00-01.jpg",
        "width": 4096,
        "height": 2160,
        "timestamp": "2022-07-19T22:19:19",
        "detections_count": 0,
        "detections": [],
        "user_permissions": []
    },
    "summary_data": [
        {
            "title": "Detections per hour",
            "data": {
                "x": [
                    "10:00 PM",
                    "11:00 PM",
                    "12:00 AM",
                    "1:00 AM",
                    "2:00 AM",
                    "3:00 AM",
                    "4:00 AM"
                ],
                "y": [
                    7,
                    38,
                    131,
                    160,
                    112,
                    159,
                    203
                ],
                "ticktext": [
                    "10:00 PM:00",
                    "4:00 AM:00"
                ]
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    12,
                    12,
                    17,
                    18,
                    19,
                    31,
                    46,
                    50,
                    66,
                    102
                ],
                "y": [
                    "Episimus argutana",
                    "Epiblema otiosana",
                    "Rhyacionia buoliana",
                    "Platynota flavedana",
                    "Argyrotaenia velutinana",
                    "Choristoneura fumiferana",
                    "Choristoneura rosaceana",
                    "Pasiphila rectangulata",
                    "Cenopis pettitana",
                    "Archips argyrospila"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2023-08-20T05:49:12.779290",
    "updated_at": "2024-11-13T15:49:20.880666",
    "user_permissions": []
}