API endpoint that allows events to be viewed or edited.

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

{
    "id": 20,
    "name": "Wednesday, Sep 14-15 2022",
    "details": "https://api.beluga.insectai.org/api/v2/events/20/?format=api",
    "deployment": {
        "id": 5,
        "name": "Cyprus",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/5/?format=api",
        "user_permissions": []
    },
    "start": "2022-09-14T18:00:00",
    "end": "2022-09-15T03:50:00",
    "day": "2022-09-14",
    "date_label": "Sep 14-15 2022",
    "duration": "35400.0",
    "duration_label": "9 hours 50 min",
    "captures_count": 52,
    "detections_count": 4,
    "occurrences_count": 4,
    "stats": {
        "detections_max_count": 4,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=20&ordering=timestamp",
    "first_capture": {
        "id": 40701,
        "details": "https://api.beluga.insectai.org/api/v2/captures/40701/?format=api",
        "url": "https://static.dev.insectai.org/ami-trapdata/cyprus/snapshots/2022_09_14/114-20220914180000-snapshot.jpg",
        "width": 4096,
        "height": 2160,
        "timestamp": "2022-09-14T18:00:00",
        "detections_count": 0,
        "detections": [],
        "user_permissions": []
    },
    "summary_data": [
        {
            "title": "Detections per hour",
            "data": {
                "x": [
                    "3:00 AM"
                ],
                "y": [
                    1
                ],
                "ticktext": [
                    "3:00 AM:00",
                    "3:00 AM:00"
                ]
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    0,
                    0,
                    1
                ],
                "y": [
                    "Heliomata glarearia",
                    "Elegia similella",
                    "Not Lepidoptera"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2023-08-20T04:50:25.528747",
    "updated_at": "2023-12-07T00:49:02.514802",
    "user_permissions": []
}