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

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

{
    "id": 260,
    "name": "W02",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/260/?format=api",
    "image": null,
    "events": [
        {
            "id": 6053,
            "name": "Wednesday, Apr 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6053/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6054,
            "name": "Friday, Apr 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6054/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6055,
            "name": "Monday, Apr 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6055/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6056,
            "name": "Wednesday, Apr 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6056/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6057,
            "name": "Friday, Apr 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6057/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6058,
            "name": "Monday, Apr 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6058/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6059,
            "name": "Wednesday, May 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6059/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6060,
            "name": "Friday, May 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6060/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6061,
            "name": "Monday, May 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6061/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6062,
            "name": "Wednesday, May 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6062/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6063,
            "name": "Friday, May 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6063/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6064,
            "name": "Monday, May 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6064/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6066,
            "name": "Wednesday, May 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6066/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6068,
            "name": "Friday, May 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6068/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6070,
            "name": "Monday, May 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6070/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6072,
            "name": "Wednesday, May 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6072/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6074,
            "name": "Friday, May 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6074/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6076,
            "name": "Monday, May 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6076/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6078,
            "name": "Wednesday, May 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6078/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6080,
            "name": "Friday, May 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6080/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6082,
            "name": "Monday, Jun 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6082/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6084,
            "name": "Wednesday, Jun 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6084/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6086,
            "name": "Friday, Jun 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6086/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6088,
            "name": "Monday, Jun 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6088/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6089,
            "name": "Wednesday, Jun 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6089/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6092,
            "name": "Friday, Jun 14-15 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6092/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6094,
            "name": "Monday, Jun 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6094/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6095,
            "name": "Wednesday, Jun 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6095/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6097,
            "name": "Friday, Jun 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6097/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6102,
            "name": "Monday, Jun 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6102/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6105,
            "name": "Wednesday, Jun 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6108,
            "name": "Saturday, Jun 29 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6108/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6109,
            "name": "Monday, Jul 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6109/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6114,
            "name": "Wednesday, Jul 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6114/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6119,
            "name": "Friday, Jul 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6119/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6123,
            "name": "Thursday, Jul 18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6123/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6128,
            "name": "Saturday, Jul 20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6128/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6130,
            "name": "Monday, Sep 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6130/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=260",
    "events_count": 39,
    "captures_count": 111405,
    "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:21:50.856589",
    "updated_at": "2025-10-08T21:19:53.994335",
    "latitude": 1.352084,
    "longitude": 103.829215,
    "first_date": "2024-04-17",
    "last_date": "2024-09-03",
    "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": 1124,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1124/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2025-01-21T10:57:07.339613",
            "updated_at": "2025-01-21T14:08:22.176021",
            "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/dep000051/snapshot_images/"
    },
    "data_source_uri": "s3://sgp/dep000051/snapshot_images/",
    "data_source_total_files": 111405,
    "data_source_total_size": 379190591974,
    "data_source_total_size_display": "353.1 GB",
    "data_source_last_checked": "2025-01-21T14:08:15",
    "data_source_subdir": "dep000051/snapshot_images",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 23204600,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204600/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192329-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154232Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=27973eaec66c78262e3211a0bcbc6ec9ce62b4122b6421bce577f05ad496433b",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:23:29",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204597,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204597/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192259-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154232Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b3d6eaa8312ca89c371e94cee70579243e61c55e84e27f622ea5e929395a1328",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:22:59",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204596,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204596/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192249-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154232Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=80d4bbb0c4baa7577cfb94036c55c9c28f91e3a647d95b74ce78a6d1dc318668",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:22:49",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204845,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204845/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626200420-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154232Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c12da7e4070a9258e002d1a14a127742e0dd891c6c33476b40258850507680e1",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T20:04:20",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204592,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204592/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192209-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154232Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=ed1fb359e4b3c8d028414f543741e06fdb7482cfbc2a8e695d21ab39508f6c96",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:22:09",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204595,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204595/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192240-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154232Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=aa89c105cbba371143e8bb25003fac311912b13089a4936056a47c326f8b8fa8",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:22:40",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204784,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204784/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626195409-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154232Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=ae39bc467dee3177c70ac580937aa88bc90438f48a67e4031e538a9b3473ff7e",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:54:09",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204603,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204603/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192359-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154233Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=48be853a29b9297de29a8c10d00f1e8a99f9d7a1fc69af6d2141c7201ee9adc4",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:23:59",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204605,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204605/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192419-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154233Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=72aff4cad89776488e944944172c76c8c43bf9708bf538e822151883e95a96a1",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:24:19",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23204580,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23204580/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000051/snapshot_images/01-20240626192009-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154233Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=018170e2a59eefb36773b60401b24249ca6879d7b2e7dc389492de4d85318e45",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-06-26T19:20:09",
            "event": {
                "id": 6105,
                "details": "https://api.beluga.insectai.org/api/v2/events/6105/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}