API endpoint that allows events to be viewed or edited.

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

{
    "id": 22,
    "name": "Friday, Sep 16-17 2022",
    "details": "https://api.beluga.insectai.org/api/v2/events/22/?format=api",
    "deployment": {
        "id": 5,
        "name": "Cyprus",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/5/?format=api",
        "user_permissions": []
    },
    "start": "2022-09-16T18:19:59",
    "end": "2022-09-17T03:49:59",
    "day": "2022-09-16",
    "date_label": "Sep 16-17 2022",
    "duration": "34200.0",
    "duration_label": "9 hours 30 min",
    "captures_count": 58,
    "detections_count": 3,
    "occurrences_count": 3,
    "stats": {
        "detections_max_count": 3,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=22&ordering=timestamp",
    "first_capture": {
        "id": 40888,
        "details": "https://api.beluga.insectai.org/api/v2/captures/40888/?format=api",
        "url": "https://static.dev.insectai.org/ami-trapdata/cyprus/snapshots/2022_09_16/68-20220916181959-snapshot.jpg",
        "width": 4096,
        "height": 2160,
        "timestamp": "2022-09-16T18:19:59",
        "detections_count": 0,
        "detections": [],
        "user_permissions": []
    },
    "summary_data": [
        {
            "title": "Detections per hour",
            "data": {
                "x": [],
                "y": [],
                "ticktext": []
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    0,
                    0,
                    0
                ],
                "y": [
                    "Pyrausta aurata",
                    "Heliomata glarearia",
                    "Dysauxes ancilla"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2023-08-20T04:50:25.553795",
    "updated_at": "2023-12-07T00:49:02.547560",
    "user_permissions": []
}