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

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

{
    "id": 256,
    "name": "W47",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/256/?format=api",
    "image": null,
    "events": [
        {
            "id": 5654,
            "name": "Friday, Apr 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5654/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5661,
            "name": "Monday, Apr 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5661/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5670,
            "name": "Wednesday, Apr 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5670/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5679,
            "name": "Friday, Apr 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5679/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5687,
            "name": "Monday, Apr 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5687/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5695,
            "name": "Wednesday, Apr 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5695/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5703,
            "name": "Friday, Apr 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5703/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5709,
            "name": "Monday, Apr 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5709/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5719,
            "name": "Wednesday, May 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5719/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5727,
            "name": "Friday, May 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5727/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5734,
            "name": "Monday, May 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5734/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5744,
            "name": "Wednesday, May 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5744/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5748,
            "name": "Friday, May 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5748/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5756,
            "name": "Monday, May 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5756/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5764,
            "name": "Monday, Jun 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5764/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5773,
            "name": "Wednesday, Jun 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=256",
    "events_count": 16,
    "captures_count": 50389,
    "occurrences_count": 0,
    "taxa_count": 0,
    "project": {
        "id": 90,
        "name": "Singapore- Labelling Project",
        "image": null,
        "details": "https://api.beluga.insectai.org/api/v2/projects/90/?format=api",
        "user_permissions": []
    },
    "created_at": "2025-01-17T07:18:48.185316",
    "updated_at": "2025-10-08T21:19:53.995973",
    "latitude": 1.3987403,
    "longitude": 103.8062226,
    "first_date": "2024-04-12",
    "last_date": "2024-06-27",
    "device": {
        "id": 93,
        "name": "Default device",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/devices/93/?format=api",
        "user_permissions": []
    },
    "research_site": {
        "id": 87,
        "name": "Default site",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/sites/87/?format=api",
        "user_permissions": []
    },
    "jobs": [
        {
            "id": 1125,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1125/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2025-01-21T10:57:30.145587",
            "updated_at": "2025-01-21T14:08:28.997160",
            "user_permissions": []
        }
    ],
    "data_source": {
        "id": 41,
        "name": "Singapore storage",
        "details": "https://api.beluga.insectai.org/api/v2/storage/41/?format=api",
        "user_permissions": [],
        "uri": "s3://sgp/dep000047/snapshot_images/"
    },
    "data_source_uri": "s3://sgp/dep000047/snapshot_images/",
    "data_source_total_files": 50389,
    "data_source_total_size": 137886764379,
    "data_source_total_size_display": "128.4 GB",
    "data_source_last_checked": "2025-01-21T14:08:25",
    "data_source_subdir": "dep000047/snapshot_images",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 23262313,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262313/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201929-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153917Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=e4e37df1dfea123ebbd1942c449ac52e183b072cb8bf00d8b56a86a8a2916020",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:19:29",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262297,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262297/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201649-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153917Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=63fa18923e8a026d7741658b61364551aea610348935bd9467c5e80f52397040",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:16:49",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262299,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262299/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201709-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153918Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=06f73b08e3f04e52c852e305a7561bde0a8c19f150c9570484fa59995a0f7919",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:17:09",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262316,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262316/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201959-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153918Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=07498ecd2deac133039d8caed5099efab5275293f67db4960c67427da67fdb1b",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:19:59",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262303,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262303/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201749-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153918Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=0d98b62ad18968ef3e0b6c19f87941e3dc0627bcca8727832f556eb08a25820f",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:17:49",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262304,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262304/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201759-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153919Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=567a34d78c7ee8b8b02eb3d42260655ace3d6a39f0c94566c0625fefe1e7cc70",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:17:59",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262305,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262305/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201809-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153919Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=bb8088429bc437b4c0e4ad79ace8bb33777b09ace64c356037c0d470bd9faff6",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:18:09",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262293,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262293/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201609-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153919Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b1aef429cc28d12a67a902f440fc129624ecc2ef73212385a5eb78304d8400b6",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:16:09",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262317,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262317/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626202009-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153919Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=23e9442d929446402262377f6d77b9351c6ab75028f2a763ec9f26f00d5263c7",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:20:09",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23262298,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23262298/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000047/snapshot_images/20240626201659-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153919Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=84ec940434cc9eacb6247afe41d8c397c57fb300db5118805920fd510a255fb7",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:16:59",
            "event": {
                "id": 5773,
                "details": "https://api.beluga.insectai.org/api/v2/events/5773/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}