API endpoint that allows events to be viewed or edited.

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

{
    "id": 5252,
    "name": "Monday, Aug 26-27 2024",
    "details": "https://api.beluga.insectai.org/api/v2/events/5252/?format=api",
    "deployment": {
        "id": 52,
        "name": "Mothra",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/52/?format=api",
        "user_permissions": []
    },
    "start": "2024-08-26T20:58:40",
    "end": "2024-08-27T03:58:00",
    "day": "2024-08-26",
    "date_label": "Aug 26-27 2024",
    "duration": "25160.0",
    "duration_label": "6 hours 59 min",
    "captures_count": 2517,
    "detections_count": 73,
    "occurrences_count": 73,
    "stats": {
        "detections_max_count": 10,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=5252&ordering=timestamp",
    "first_capture": {
        "id": 19200097,
        "details": "https://api.beluga.insectai.org/api/v2/captures/19200097/?format=api",
        "url": "https://object-arbutus.cloud.computecanada.ca/ami-trapdata/vermont/RawImages/MOTHRA/01-20240826205840-snapshot.jpg",
        "width": 4096,
        "height": 2160,
        "timestamp": "2024-08-26T20:58:40",
        "detections_count": 0,
        "detections": [],
        "user_permissions": []
    },
    "summary_data": [
        {
            "title": "Detections per hour",
            "data": {
                "x": [
                    "12:00 AM",
                    "1:00 AM",
                    "2:00 AM",
                    "3:00 AM"
                ],
                "y": [
                    24,
                    8,
                    8,
                    14
                ],
                "ticktext": [
                    "12:00 AM:00",
                    "3:00 AM:00"
                ]
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    0,
                    0,
                    0,
                    1,
                    1,
                    1,
                    5,
                    5,
                    7,
                    34
                ],
                "y": [
                    "Nomophila nearctica",
                    "Microcrambus immunellus",
                    "Magusa divaricata",
                    "Sitochroa palealis",
                    "Macaria bisignata",
                    "Eudonia strigalis",
                    "Microcrambus elegans",
                    "Nematocampa resistaria",
                    "Campaea perlata",
                    "Not a Moth"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2025-01-14T21:49:02.703513",
    "updated_at": "2025-01-15T19:04:45.436310",
    "user_permissions": []
}