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

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

{
    "id": 257,
    "name": "SBWR",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/257/?format=api",
    "image": null,
    "events": [
        {
            "id": 5655,
            "name": "Monday, Apr 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5655/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5660,
            "name": "Wednesday, Apr 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5660/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5669,
            "name": "Friday, Apr 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5669/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5677,
            "name": "Monday, Apr 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5677/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5686,
            "name": "Wednesday, Apr 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5686/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5693,
            "name": "Friday, Apr 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5693/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5701,
            "name": "Monday, Apr 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5701/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5710,
            "name": "Wednesday, May 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5710/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5717,
            "name": "Friday, May 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5717/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5723,
            "name": "Monday, May 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5723/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5731,
            "name": "Wednesday, May 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5731/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5742,
            "name": "Friday, May 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5742/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5749,
            "name": "Monday, May 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5749/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5761,
            "name": "Wednesday, May 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5761/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5771,
            "name": "Friday, May 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5771/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5779,
            "name": "Monday, May 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5779/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5783,
            "name": "Wednesday, May 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5783/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5789,
            "name": "Friday, May 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5789/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5798,
            "name": "Monday, May 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5798/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5810,
            "name": "Wednesday, May 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5810/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5825,
            "name": "Friday, May 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5825/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5836,
            "name": "Monday, Jun 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5844,
            "name": "Wednesday, Jun 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5844/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5855,
            "name": "Saturday, Jun 8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5855/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5858,
            "name": "Monday, Jun 10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5858/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5867,
            "name": "Tuesday, Jun 11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5867/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=257",
    "events_count": 26,
    "captures_count": 75816,
    "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:19:32.409817",
    "updated_at": "2025-10-08T21:19:53.951263",
    "latitude": 1.4456029,
    "longitude": 103.7308777,
    "first_date": "2024-04-15",
    "last_date": "2024-06-11",
    "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": 1123,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1123/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2025-01-21T10:56:34.598022",
            "updated_at": "2025-01-21T14:05:31.362448",
            "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/dep000048/snapshot_images/"
    },
    "data_source_uri": "s3://sgp/dep000048/snapshot_images/",
    "data_source_total_files": 75816,
    "data_source_total_size": 215691059341,
    "data_source_total_size_display": "200.9 GB",
    "data_source_last_checked": "2025-01-21T14:05:27",
    "data_source_subdir": "dep000048/snapshot_images",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 23070005,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070005/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195410-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=50713051a0818b5a45d374a5bf65b3bc2bed421b63160999e77f77dd8e261f6d",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:54:10",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070002,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070002/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195340-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=fa1980a31f560576e443bc19a682bc29e0946a27756eb8af2d2894a921d3b50b",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:53:40",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070004,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070004/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195400-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2a2e9af7352d781348e19c01c1be4dfe1acd6b9c4b00884ea9faa3ff273f1ebd",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:54:00",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070003,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070003/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195350-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=035c1fc3ede4c83367bb21b76edcbdeabc9603b99edc7b610f2a708a90610725",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:53:50",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070000,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070000/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195320-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=88c8326be5666b13258f3451701039695b6ab9d9fcdcbc06ab7042df9b85ec03",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:53:20",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23022208,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23022208/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240524202239-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b8e4af7b6a69395ca2c775a70198b23cd24cee018c956dd31610f4f7e98f2f46",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-24T20:22:39",
            "event": {
                "id": 5789,
                "details": "https://api.beluga.insectai.org/api/v2/events/5789/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070027,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070027/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195750-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=40e298dc67d95436f9abe8f91af388b32f66120af96696037f37634495542615",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:57:50",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070006,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070006/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195420-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=503c74ee8b1465f397dcd0d4b1c1196c55aa8ab3b5cbab4076cae347b421d02e",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:54:20",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070015,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070015/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195550-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154402Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=14a6a4ed7cf287fd61b4cfd1679a0ca11ea135a4ebbb865cde1b3f7b0005ac58",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:55:50",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23070001,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23070001/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000048/snapshot_images/01-20240603195330-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154403Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=66c275560b9c3a3a01635ab38f6c9ccc01b14b964efa4a63447d743715650c93",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-03T19:53:30",
            "event": {
                "id": 5836,
                "details": "https://api.beluga.insectai.org/api/v2/events/5836/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}