A model viewset that uses different serializers for the list and detail views.

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

{
    "id": 108,
    "name": "Panama - trap 1",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/108/?format=api",
    "image": null,
    "events": [
        {
            "id": 3823,
            "name": "Wednesday, Jan 25 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3823/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3156,
            "name": "Friday, Sep 15 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3156/?format=api",
            "occurrences_count": 138,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3158,
            "name": "Saturday, Nov 11 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3158/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3159,
            "name": "Monday, Nov 27 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3159/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3176,
            "name": "Tuesday, Nov 28-29 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3176/?format=api",
            "occurrences_count": 52,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3161,
            "name": "Tuesday, Dec 5-6 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3161/?format=api",
            "occurrences_count": 104,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3162,
            "name": "Tuesday, Dec 12 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3162/?format=api",
            "occurrences_count": 56,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3177,
            "name": "Friday, Feb 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3177/?format=api",
            "occurrences_count": 86,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3164,
            "name": "Wednesday, Feb 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3164/?format=api",
            "occurrences_count": 127,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3824,
            "name": "Wednesday, Mar 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3824/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3825,
            "name": "Friday, Apr 5 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3825/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3826,
            "name": "Tuesday, Apr 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3826/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3827,
            "name": "Tuesday, Apr 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3827/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3828,
            "name": "Wednesday, Apr 17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3828/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3829,
            "name": "Tuesday, Apr 23-24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3829/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3830,
            "name": "Wednesday, Apr 24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3830/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3831,
            "name": "Tuesday, Apr 30-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3831/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3832,
            "name": "Wednesday, May 1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3832/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3833,
            "name": "Tuesday, May 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3833/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4539,
            "name": "Tuesday, Jul 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4539/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=108",
    "events_count": 19,
    "captures_count": 54227,
    "occurrences_count": 563,
    "taxa_count": 96,
    "project": {
        "id": 46,
        "name": "AMBER - Panama",
        "image": "https://object-arbutus.cloud.computecanada.ca/ami-media-staging/uploads/projects/alan-turing-institute9245.logowik.com_Tv23tdP.png",
        "details": "https://api.beluga.insectai.org/api/v2/projects/46/?format=api",
        "user_permissions": []
    },
    "created_at": "2024-04-25T09:44:37.285513",
    "updated_at": "2025-10-08T21:19:53.914424",
    "latitude": 9.02887,
    "longitude": -79.63921,
    "first_date": "2023-01-25",
    "last_date": "2024-07-10",
    "device": null,
    "research_site": null,
    "jobs": [
        {
            "id": 824,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/824/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-09-03T17:07:57.841415",
            "updated_at": "2024-11-13T17:15:33.861795",
            "user_permissions": []
        },
        {
            "id": 607,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/607/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-04-29T14:49:56.271238",
            "updated_at": "2024-11-13T17:15:34.274658",
            "user_permissions": []
        }
    ],
    "data_source": {
        "id": 20,
        "name": "Panama data",
        "details": "https://api.beluga.insectai.org/api/v2/storage/20/?format=api",
        "user_permissions": [],
        "uri": "s3://pan/dep000017/"
    },
    "data_source_uri": "s3://pan/dep000017/",
    "data_source_total_files": 54227,
    "data_source_total_size": 45463376951,
    "data_source_total_size_display": "42.3 GB",
    "data_source_last_checked": "2024-09-20T06:18:31.745981",
    "data_source_subdir": "dep000017",
    "data_source_regex": "",
    "description": "dep000017",
    "example_captures": [
        {
            "id": 8303883,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8303883/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/pan-dep000017-adolfo-alba-001281.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142300Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2d187ede7b27b99f1b6e01786285f8bed3db458d1d32e42d27df1bcbe6a2e78e",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8303884,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8303884/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/pan-dep000017-adolfo-alba-141217.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142300Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=603eb40c8d9ab52db0cc5cd0089ffb337dfacddf1a55f79c09785c7cc1cc2e3b",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8303885,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8303885/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/pan-dep000017-adolfo-alba-717814.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142300Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=79140855a71f64c7c159f896fb7ac17ef88ad89f60941a6a919d16f0a3e3bca4",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8303886,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8303886/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/pan-dep000017-adolfo-alba-729906.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=9f3700f6659e01664e1e51ed0008d77611c7769e3b9aec6994a3aa62a8ec89e0",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8242216,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8242216/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/20231111234050-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T121844Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=3af8d5a6be4c73983852f94e5d953a98dc747f4a823dc2071289e03727061ffc",
            "width": null,
            "height": null,
            "timestamp": "2023-11-11T23:40:50",
            "event": {
                "id": 3158,
                "details": "https://api.beluga.insectai.org/api/v2/events/3158/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 10665414,
            "details": "https://api.beluga.insectai.org/api/v2/captures/10665414/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/motion_images/20230125050245.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=5a70fe46ebe20bf021b9d354fa8236cf38f874e558d070e09bd023898014f479",
            "width": null,
            "height": null,
            "timestamp": "2023-01-25T05:02:45",
            "event": {
                "id": 3823,
                "details": "https://api.beluga.insectai.org/api/v2/events/3823/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 15219203,
            "details": "https://api.beluga.insectai.org/api/v2/captures/15219203/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/20240710042559-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b2f01a053adc2f10ad7d4e1c75193a66cb49d20e87267ab6df6a57675d314268",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-07-10T04:25:59",
            "event": {
                "id": 4539,
                "details": "https://api.beluga.insectai.org/api/v2/events/4539/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 15219202,
            "details": "https://api.beluga.insectai.org/api/v2/captures/15219202/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/20240710042549-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b9c343ee193a44682598130e2f97695f8d95e048ba91a74fde5c348a3885db5c",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-07-10T04:25:49",
            "event": {
                "id": 4539,
                "details": "https://api.beluga.insectai.org/api/v2/events/4539/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 15219205,
            "details": "https://api.beluga.insectai.org/api/v2/captures/15219205/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/20240710042619-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=26638107e0d9a220b372859a9a0779ff2e4ccae2d4ca7769cf7d1993df4ae125",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-07-10T04:26:19",
            "event": {
                "id": 4539,
                "details": "https://api.beluga.insectai.org/api/v2/events/4539/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 15218961,
            "details": "https://api.beluga.insectai.org/api/v2/captures/15218961/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000017/snapshot_images/20240710034539-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=e281f8be54fdf22488b2f0c990e1e87223465936bb004d0b42e4539e110fd69e",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-07-10T03:45:39",
            "event": {
                "id": 4539,
                "details": "https://api.beluga.insectai.org/api/v2/events/4539/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}