API endpoint that allows events to be viewed or edited.

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

{
    "id": 48,
    "name": "Friday, Jul 15-16 2022",
    "details": "https://api.beluga.insectai.org/api/v2/events/48/?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-15T22:02:56",
    "end": "2022-07-16T04:58:16",
    "day": "2022-07-15",
    "date_label": "Jul 15-16 2022",
    "duration": "24920.0",
    "duration_label": "6 hours 55 min",
    "captures_count": 2020,
    "detections_count": 49,
    "occurrences_count": 44,
    "stats": {
        "detections_max_count": 7,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=48&ordering=timestamp",
    "first_capture": {
        "id": 224575,
        "details": "https://api.beluga.insectai.org/api/v2/captures/224575/?format=api",
        "url": "https://static.dev.insectai.org/ami-trapdata/newfoundland/Unit-2/Jul 15 images/20220715220256-00-01.jpg",
        "width": 4096,
        "height": 2160,
        "timestamp": "2022-07-15T22:02:56",
        "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": [
                    15,
                    7,
                    7,
                    1,
                    2,
                    2,
                    10
                ],
                "ticktext": [
                    "10:00 PM:00",
                    "4:00 AM:00"
                ]
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    1,
                    1,
                    1,
                    1,
                    2,
                    2,
                    2,
                    3,
                    3,
                    12
                ],
                "y": [
                    "Argyrotaenia velutinana",
                    "Crambus pascuella",
                    "Archips argyrospila",
                    "Choristoneura fumiferana",
                    "Noctua pronuba",
                    "Endothenia hebesana",
                    "Cenopis pettitana",
                    "Pandemis limitata",
                    "Platynota flavedana",
                    "Choristoneura rosaceana"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2023-08-20T05:49:10.907725",
    "updated_at": "2024-11-13T15:49:19.107577",
    "user_permissions": []
}