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

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

{
    "id": 146,
    "name": "BAMK",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/146/?format=api",
    "image": null,
    "events": [
        {
            "id": 4470,
            "name": "Tuesday, Apr 16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4470/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4471,
            "name": "Wednesday, Apr 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4471/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4472,
            "name": "Friday, Apr 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4472/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4473,
            "name": "Monday, Apr 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4473/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4474,
            "name": "Wednesday, Apr 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4474/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4475,
            "name": "Friday, Apr 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4475/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4476,
            "name": "Monday, Apr 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4476/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4477,
            "name": "Wednesday, May 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4477/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4478,
            "name": "Friday, May 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4478/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4479,
            "name": "Monday, May 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4479/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4480,
            "name": "Wednesday, May 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4480/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4481,
            "name": "Friday, May 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4481/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4482,
            "name": "Monday, May 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4482/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4483,
            "name": "Wednesday, May 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4483/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4484,
            "name": "Friday, May 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4484/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4485,
            "name": "Monday, May 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4485/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4486,
            "name": "Wednesday, May 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4487,
            "name": "Friday, May 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4487/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4488,
            "name": "Monday, May 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4488/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4489,
            "name": "Wednesday, May 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4489/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4490,
            "name": "Friday, May 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4490/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4491,
            "name": "Monday, Jun 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4491/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4492,
            "name": "Wednesday, Jun 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4492/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4493,
            "name": "Friday, Jun 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4493/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4494,
            "name": "Monday, Jun 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4494/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4495,
            "name": "Wednesday, Jun 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4495/?format=api",
            "occurrences_count": 1,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4496,
            "name": "Friday, Jun 14-15 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4496/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4497,
            "name": "Monday, Jun 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4497/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4498,
            "name": "Wednesday, Jun 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4498/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4499,
            "name": "Friday, Jun 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4499/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4500,
            "name": "Monday, Jun 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4500/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4501,
            "name": "Wednesday, Jun 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4501/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=146",
    "events_count": 32,
    "captures_count": 100470,
    "occurrences_count": 0,
    "taxa_count": 0,
    "project": {
        "id": 67,
        "name": "AMBER - Singapore",
        "image": "https://object-arbutus.cloud.computecanada.ca/ami-media-staging/uploads/projects/alan-turing-institute9245.logowik.com_Tv23tdP_zC1VQln.png",
        "details": "https://api.beluga.insectai.org/api/v2/projects/67/?format=api",
        "user_permissions": []
    },
    "created_at": "2024-06-05T10:42:59.825589",
    "updated_at": "2025-10-08T21:19:53.620372",
    "latitude": 0.0,
    "longitude": 0.0,
    "first_date": "2024-04-16",
    "last_date": "2024-06-27",
    "device": null,
    "research_site": null,
    "jobs": [
        {
            "id": 973,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/973/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-09-20T05:59:15.934856",
            "updated_at": "2024-11-13T17:15:33.399944",
            "user_permissions": []
        }
    ],
    "data_source": {
        "id": 30,
        "name": "Singapore storage",
        "details": "https://api.beluga.insectai.org/api/v2/storage/30/?format=api",
        "user_permissions": [],
        "uri": "s3://sgp/dep000050/"
    },
    "data_source_uri": "s3://sgp/dep000050/",
    "data_source_total_files": 100470,
    "data_source_total_size": 339231722642,
    "data_source_total_size_display": "315.9 GB",
    "data_source_last_checked": "2024-09-20T06:02:36.620628",
    "data_source_subdir": "dep000050",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 14403828,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403828/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522194010-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140837Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=3007cf99914b0a6a819a7564492b768e2cd032cb0dcdca1ca8aae029547a26c4",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:40:10",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403798,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403798/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522193510-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140837Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=ca4a944870c38d0f9471979f26f14e2774263539915e755de6cb6161e5033b21",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:35:10",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403825,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403825/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522193940-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140837Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=a238613aad94ac762a14327a04a5d5a4de17787fcbf6da5692f1933b1cb26a17",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:39:40",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403846,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403846/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522194310-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140837Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=3382f73c29cf5e4c1d41342844c902803d06f39268020137648e76edca875a44",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:43:10",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403857,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403857/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522194500-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140837Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=add42608450860d077b3481875bc326ea48a161179526c15a4ec426ff3e45d72",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:45:00",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403818,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403818/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522193830-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140838Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c252714cc1012851adc79aa041c52a05e6aff059056e81bd004ca2e5bfe576a0",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:38:30",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403789,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403789/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522193340-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140838Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=4a275cc187c46198a9c8de309ccf8867b24ac506bf09f6315d173498c7ad9767",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:33:40",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403804,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403804/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522193610-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140838Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=fdd80ce6c480f0bac2f03521f26be4b9b85be66dd64d5f006deed485b9fb6fdc",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:36:10",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403841,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403841/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522194220-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140838Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=e97fb08dd4e37fa25ef170e25f08784a3908063398c03edd4fa1397c382040be",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:42:20",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14403788,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14403788/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000050/snapshot_images/20240522193330-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140838Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2026a7f291d0c7574929a97ed9b38b7f666c1ed612df57164ecfae1c1aa5530e",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:33:30",
            "event": {
                "id": 4486,
                "details": "https://api.beluga.insectai.org/api/v2/events/4486/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}