API endpoint that allows events to be viewed or edited.

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

{
    "id": 2530,
    "name": "Friday, Jul 1 2022",
    "details": "https://api.beluga.insectai.org/api/v2/events/2530/?format=api",
    "deployment": {
        "id": 53,
        "name": "Luna",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/53/?format=api",
        "user_permissions": []
    },
    "start": "2022-07-01T20:13:00",
    "end": "2022-07-01T21:21:35",
    "day": "2022-07-01",
    "date_label": "Jul 1 2022",
    "duration": "4115.0",
    "duration_label": "1 hours 8 min",
    "captures_count": 99,
    "detections_count": 7,
    "occurrences_count": 2,
    "stats": {
        "detections_max_count": 2,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=2530&ordering=timestamp",
    "first_capture": {
        "id": 5073175,
        "details": "https://api.beluga.insectai.org/api/v2/captures/5073175/?format=api",
        "url": "https://static.dev.insectai.org/ami-trapdata/vermont/RawImages/LUNA/2022/snapshots/2022_07_01_snapshots/20220701201300-01-snapshot.jpg",
        "width": 4096,
        "height": 2160,
        "timestamp": "2022-07-01T20:13:00",
        "detections_count": 0,
        "detections": [],
        "user_permissions": []
    },
    "summary_data": [
        {
            "title": "Detections per hour",
            "data": {
                "x": [
                    "8:00 PM",
                    "9:00 PM"
                ],
                "y": [
                    1,
                    2
                ],
                "ticktext": [
                    "8:00 PM:00",
                    "9:00 PM:00"
                ]
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    0,
                    0,
                    0,
                    0,
                    1,
                    1,
                    1
                ],
                "y": [
                    "Carmenta ithacae",
                    "Alypia octomaculata",
                    "Synanthedon scitula",
                    "Platynota idaeusalis",
                    "Coleophora mayrella",
                    "Adela caeruleella",
                    "Cnephasia stephensiana"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2023-10-12T22:59:54.777720",
    "updated_at": "2024-09-05T00:18:02.250745",
    "user_permissions": []
}