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

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

{
    "id": 262,
    "name": "SBG",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/262/?format=api",
    "image": null,
    "events": [
        {
            "id": 5657,
            "name": "Wednesday, Feb 21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5657/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5662,
            "name": "Friday, Feb 23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5662/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5666,
            "name": "Friday, Apr 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5666/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5674,
            "name": "Monday, Apr 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5674/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5682,
            "name": "Wednesday, Apr 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5682/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5690,
            "name": "Friday, Apr 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5690/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5697,
            "name": "Monday, Apr 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5697/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5708,
            "name": "Wednesday, May 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5708/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5715,
            "name": "Friday, May 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5715/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5720,
            "name": "Monday, May 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5720/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5728,
            "name": "Wednesday, May 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5728/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5738,
            "name": "Friday, May 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5738/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5746,
            "name": "Monday, May 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5746/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5752,
            "name": "Wednesday, May 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5752/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5758,
            "name": "Friday, May 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5758/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5770,
            "name": "Monday, May 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5770/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5777,
            "name": "Wednesday, May 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5777/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5785,
            "name": "Friday, May 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5785/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5791,
            "name": "Monday, May 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5791/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5797,
            "name": "Wednesday, May 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5797/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5807,
            "name": "Friday, May 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5807/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5819,
            "name": "Monday, Jun 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5819/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5831,
            "name": "Wednesday, Jun 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5831/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5838,
            "name": "Friday, Jun 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5838/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5850,
            "name": "Monday, Jun 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5850/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5864,
            "name": "Wednesday, Jun 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5864/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5874,
            "name": "Friday, Jun 14-15 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5874/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5882,
            "name": "Monday, Jun 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5882/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5892,
            "name": "Wednesday, Jun 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5892/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5901,
            "name": "Friday, Jun 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5901/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5910,
            "name": "Monday, Jun 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5910/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5920,
            "name": "Wednesday, Jun 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5930,
            "name": "Friday, Jun 28-29 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5930/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5940,
            "name": "Monday, Jul 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5940/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5950,
            "name": "Wednesday, Jul 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5950/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5960,
            "name": "Friday, Jul 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5960/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5972,
            "name": "Monday, Jul 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5972/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5982,
            "name": "Wednesday, Jul 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5982/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5990,
            "name": "Friday, Jul 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5990/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6000,
            "name": "Monday, Jul 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6000/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6009,
            "name": "Wednesday, Jul 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6009/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6019,
            "name": "Friday, Jul 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6019/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6036,
            "name": "Monday, Jul 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6036/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6137,
            "name": "Wednesday, Jul 24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6137/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=262",
    "events_count": 44,
    "captures_count": 133837,
    "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:22:40.940500",
    "updated_at": "2025-10-08T21:19:53.947797",
    "latitude": 1.310886,
    "longitude": 103.8174034,
    "first_date": "2024-02-21",
    "last_date": "2024-07-24",
    "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": 1122,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1122/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2025-01-21T10:56:20.320319",
            "updated_at": "2025-01-21T14:06:56.582433",
            "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/dep000053/snapshot_images/"
    },
    "data_source_uri": "s3://sgp/dep000053/snapshot_images/",
    "data_source_total_files": 133837,
    "data_source_total_size": 367630154934,
    "data_source_total_size_display": "342.4 GB",
    "data_source_last_checked": "2025-01-21T14:06:48",
    "data_source_subdir": "dep000053/snapshot_images",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 23012904,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012904/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195239-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153643Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=3178b5edbdaffff1156388c5da5f218ce8315b8ab244f1c9c1d7565da6f840f8",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:52:39",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012902,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012902/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195219-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153643Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=d9254a90078b032a2d77af81deb87d9f995a7ac5e328de9fe39b6b383dbe1027",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:52:19",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012908,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012908/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195319-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153643Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=eaed4c7f1562af582ad0b232688f9a88568c8c4186cabedc27c9eb66747cb0c8",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:53:19",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012907,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012907/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195309-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153643Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=73b6ea521a58dade855d5d20879ba2c21861961540514b22a1a91574ad9a9893",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:53:09",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012903,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012903/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195229-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153643Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=291ad99e28ac4f8e55c3328d0265f8660425d50354f1a779adb50eb734268070",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:52:29",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012906,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012906/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195259-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153644Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=9cca90093cd64aaf6f76913eddc577845018ebdcf4652a7c6e9b697472d41ce8",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:52:59",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012900,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012900/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195159-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153645Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=1a91915259fb55b1f2876044b330ba95e07d85d18f350a4c65620664ae5a9b70",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:51:59",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012905,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012905/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195249-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153646Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=0c7256839670ba82f6d3dff4f487585ee512064e8654b70299093ef4687ad590",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:52:49",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012912,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012912/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195359-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153647Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=611dbcf7c8d32e0f49b5ad757f8bbc189868e124c4beff71cf7d92cd469c1ef4",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:53:59",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23012917,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23012917/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000053/snapshot_images/20240626195449-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153647Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=13fc456624cefd993172a9b2ec2117aa8f4bab56cc1e082596bbd687cc7e9f10",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:54:49",
            "event": {
                "id": 5920,
                "details": "https://api.beluga.insectai.org/api/v2/events/5920/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}