API endpoint that allows events to be viewed or edited.

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

{
    "id": 3156,
    "name": "Friday, Sep 15 2023",
    "details": "https://api.beluga.insectai.org/api/v2/events/3156/?format=api",
    "deployment": {
        "id": 108,
        "name": "Panama - trap 1",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/108/?format=api",
        "user_permissions": []
    },
    "start": "2023-09-15T11:46:49",
    "end": "2023-09-15T22:59:59",
    "day": "2023-09-15",
    "date_label": "Sep 15 2023",
    "duration": "40390.0",
    "duration_label": "11 hours 13 min",
    "captures_count": 4006,
    "detections_count": 633,
    "occurrences_count": 138,
    "stats": {
        "detections_max_count": 22,
        "detections_min_count": 0
    },
    "taxa_count": 0,
    "captures": "https://api.beluga.insectai.org/api/v2/captures/?format=api?event=3156&ordering=timestamp",
    "first_capture": {
        "id": 8233210,
        "details": "https://api.beluga.insectai.org/api/v2/captures/8233210/?format=api",
        "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/20230915114649-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T160017Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=5a5d9083c295db60a92e6c9a52483973e71a0141e2e6f45a31bc571d87cb5aa1",
        "width": 4096,
        "height": 2160,
        "timestamp": "2023-09-15T11:46:49",
        "detections_count": 0,
        "detections": [],
        "user_permissions": []
    },
    "summary_data": [
        {
            "title": "Detections per hour",
            "data": {
                "x": [
                    "1:00 PM",
                    "2:00 PM",
                    "3:00 PM",
                    "4:00 PM",
                    "5:00 PM",
                    "6:00 PM",
                    "7:00 PM",
                    "8:00 PM",
                    "9:00 PM",
                    "10:00 PM"
                ],
                "y": [
                    16,
                    18,
                    28,
                    32,
                    26,
                    23,
                    29,
                    16,
                    5,
                    11
                ],
                "ticktext": [
                    "1:00 PM:00",
                    "10:00 PM:00"
                ]
            },
            "type": "bar"
        },
        {
            "title": "Top species",
            "data": {
                "x": [
                    5,
                    6,
                    6,
                    8,
                    9,
                    10,
                    13,
                    17,
                    20,
                    46
                ],
                "y": [
                    "Macaria abydata",
                    "Lobocleta ossularia",
                    "Samea ecclesialis",
                    "Glaphyria invisalis",
                    "Pilocrocis ramentalis",
                    "Baniana ostia",
                    "Ascalapha odorata",
                    "Elasmopalpus lignosella",
                    "Herpetogramma phaeopteralis",
                    "Plodia interpunctella"
                ]
            },
            "type": "bar",
            "orientation": "h"
        }
    ],
    "capture_page_offset": null,
    "created_at": "2024-04-29T14:50:38.615093",
    "updated_at": "2024-09-20T06:43:49.218099",
    "user_permissions": []
}