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

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

{
    "id": 113,
    "name": "Panama - trap 6",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/113/?format=api",
    "image": null,
    "events": [
        {
            "id": 3857,
            "name": "Friday, Sep 15 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3857/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3211,
            "name": "Wednesday, Nov 15-20 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3211/?format=api",
            "occurrences_count": 1645,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3189,
            "name": "Monday, Feb 12-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3189/?format=api",
            "occurrences_count": 584,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3858,
            "name": "Wednesday, Mar 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3858/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3859,
            "name": "Wednesday, Mar 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3859/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3860,
            "name": "Friday, Apr 12 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3860/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3861,
            "name": "Tuesday, Apr 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3861/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3862,
            "name": "Wednesday, Apr 24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3862/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3863,
            "name": "Tuesday, Apr 30-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3863/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3864,
            "name": "Tuesday, May 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3864/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=113",
    "events_count": 10,
    "captures_count": 126957,
    "occurrences_count": 11400,
    "taxa_count": 422,
    "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:48:50.051955",
    "updated_at": "2025-10-08T21:19:53.923506",
    "latitude": 9.1581468,
    "longitude": -79.8473376,
    "first_date": "2023-09-15",
    "last_date": "2024-08-29",
    "device": null,
    "research_site": null,
    "jobs": [
        {
            "id": 1097,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1097/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-12-05T17:27:16.236732",
            "updated_at": "2024-12-05T17:32:57.203992",
            "user_permissions": []
        },
        {
            "id": 829,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/829/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-09-03T17:14:37.310803",
            "updated_at": "2024-11-13T17:15:33.843873",
            "user_permissions": []
        },
        {
            "id": 617,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/617/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Unknown",
                "key": "unknown"
            },
            "created_at": "2024-04-29T15:13:17.101644",
            "updated_at": "2024-11-13T17:15:34.253594",
            "user_permissions": []
        },
        {
            "id": 604,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/604/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Unknown",
                "key": "unknown"
            },
            "created_at": "2024-04-29T14:48:08.498168",
            "updated_at": "2024-11-13T17:15:34.280110",
            "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/dep000022/"
    },
    "data_source_uri": "s3://pan/dep000022/",
    "data_source_total_files": 126957,
    "data_source_total_size": 79343209323,
    "data_source_total_size_display": "73.9 GB",
    "data_source_last_checked": "2024-12-05T17:32:48.524953",
    "data_source_subdir": "dep000022",
    "data_source_regex": "",
    "description": "dep000022",
    "example_captures": [
        {
            "id": 8247540,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8247540/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/pan-dep000022-adolfo-alba-188017.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020533Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=77af7f4d5c93cf3fcd5a8a48d9221347237d4f6eb244a6c96b6a51afb5f4cb89",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8247544,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8247544/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/pan-dep000022-adolfo-alba-693066.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020533Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=624f2cb1285f75bb1fb87b7256bda3d65684c1445d78a4da4278ffbaaff6cd7e",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8247541,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8247541/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/pan-dep000022-adolfo-alba-331566.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020533Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=4682ef5667adb621910accfe3154fd896590146fd281d791bf747ea04e516980",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8247543,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8247543/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/pan-dep000022-adolfo-alba-593844.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020533Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=d0661d825c6576faf013232e35bcdf6e31d2e1765c1c5571202736f484edbeda",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8247542,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8247542/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/pan-dep000022-adolfo-alba-345156.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020533Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=444ed1d33deba77eab68e95a0dfa4a27f265f4d603b525827c799393743e2939",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8148911,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8148911/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/20231115130740-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020534Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=100e815d8d4f43f27e922c20c491afff0178d5574a8ec9527955208ab6732bfb",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-15T13:07:40",
            "event": {
                "id": 3211,
                "details": "https://api.beluga.insectai.org/api/v2/events/3211/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8148897,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8148897/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/20231115130520-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020534Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=0067d7d80e53e5fc27df6fa9f38da28d44ee439701e3341fbb87a359846065f0",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-15T13:05:20",
            "event": {
                "id": 3211,
                "details": "https://api.beluga.insectai.org/api/v2/events/3211/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8149069,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8149069/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/20231115133400-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020534Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=1e05812de265e495e5d2a7b4b9a6ed1f073ee22847011b92d992f7777ef360ef",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-15T13:34:00",
            "event": {
                "id": 3211,
                "details": "https://api.beluga.insectai.org/api/v2/events/3211/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8149070,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8149070/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/20231115133410-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020534Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=9ae584cde72450c08836e6538f502224066a23ae108f4b6b3204d8eb6827f3e8",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-15T13:34:10",
            "event": {
                "id": 3211,
                "details": "https://api.beluga.insectai.org/api/v2/events/3211/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8146156,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8146156/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000022/snapshot_images/20231115052830-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260413T020534Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=40721a2892ef392f5b50b55a6d395a88e0fa48e6634d2427d0ad0c826633774b",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-15T05:28:30",
            "event": {
                "id": 3211,
                "details": "https://api.beluga.insectai.org/api/v2/events/3211/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}