API endpoint that allows events to be viewed or edited.

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

{
    "id": 5108,
    "name": "Thursday, Sep 1-2 2022",
    "details": "https://api.beluga.insectai.org/api/v2/events/5108/?format=api",
    "deployment": {
        "id": 235,
        "name": "Insectarium",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/235/?format=api",
        "user_permissions": []
    },
    "start": "2022-09-01T20:40:00",
    "end": "2022-09-02T06:30:00",
    "day": "2022-09-01",
    "date_label": "Sep 1-2 2022",
    "duration": "35400.0",
    "duration_label": "9 hours 50 min",
    "captures_count": 305,
    "detections_count": 50,
    "occurrences_count": 8,
    "stats": {
        "detections_max_count": 2,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=5108&ordering=timestamp",
    "first_capture": {
        "id": 17833078,
        "details": "https://api.beluga.insectai.org/api/v2/captures/17833078/?format=api",
        "url": "https://object-arbutus.cloud.computecanada.ca/ami-trapdata/quebec/insectarium/AMI_A_Insectarium/2022/SnapShot/01-20220901204000-snapshot.jpg",
        "width": 4096,
        "height": 2160,
        "timestamp": "2022-09-01T20:40:00",
        "detections_count": 0,
        "detections": [],
        "user_permissions": []
    },
    "summary_data": [
        {
            "title": "Detections per hour",
            "data": {
                "x": [
                    "9:00 PM",
                    "4:00 AM",
                    "5:00 AM"
                ],
                "y": [
                    3,
                    3,
                    2
                ],
                "ticktext": [
                    "9:00 PM:00",
                    "5:00 AM:00"
                ]
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    1,
                    1,
                    1,
                    1,
                    4
                ],
                "y": [
                    "Endrosis sarcitrella",
                    "Elasmopalpus lignosella",
                    "Decodes basiplagana",
                    "Crambus laqueatellus",
                    "Coscinia cribraria",
                    "Agriphila ruricolellus",
                    "Noctua pronuba",
                    "Neurobathra strigifinitella",
                    "Agriphila straminella",
                    "Agriphila vulgivagellus"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2024-09-27T22:49:47.282796",
    "updated_at": "2026-01-27T17:22:11.273379",
    "user_permissions": []
}