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

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

{
    "id": 266,
    "name": "Puang Thong 2 (lake)",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/266/?format=api",
    "image": null,
    "events": [
        {
            "id": 5442,
            "name": "Thursday, Jul 25-26 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5442/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5446,
            "name": "Friday, Jul 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5446/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5451,
            "name": "Monday, Jul 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5451/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5455,
            "name": "Wednesday, Jul 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5455/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5460,
            "name": "Friday, Aug 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5460/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5465,
            "name": "Monday, Aug 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5465/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5470,
            "name": "Wednesday, Aug 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5470/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5475,
            "name": "Friday, Aug 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5475/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5480,
            "name": "Monday, Aug 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5480/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5484,
            "name": "Wednesday, Aug 14-15 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5484/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5489,
            "name": "Friday, Aug 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5494,
            "name": "Monday, Aug 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5494/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5499,
            "name": "Wednesday, Aug 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5499/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5505,
            "name": "Friday, Aug 23-24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5505/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5510,
            "name": "Monday, Aug 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5510/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5515,
            "name": "Wednesday, Aug 28-29 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5515/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5520,
            "name": "Friday, Aug 30-31 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5520/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5525,
            "name": "Monday, Sep 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5525/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5528,
            "name": "Wednesday, Sep 4-5 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5528/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5533,
            "name": "Friday, Sep 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5533/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5541,
            "name": "Monday, Sep 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5541/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5545,
            "name": "Wednesday, Sep 11-12 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5545/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5550,
            "name": "Friday, Sep 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5550/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5557,
            "name": "Monday, Sep 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5557/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5563,
            "name": "Wednesday, Sep 18-19 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5563/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5569,
            "name": "Friday, Sep 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5569/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5573,
            "name": "Monday, Sep 23-24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5573/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5578,
            "name": "Wednesday, Sep 25-26 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5578/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5582,
            "name": "Friday, Sep 27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5582/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=266",
    "events_count": 29,
    "captures_count": 95078,
    "occurrences_count": 0,
    "taxa_count": 0,
    "project": {
        "id": 91,
        "name": "Thailand Labelling Project",
        "image": "https://object-arbutus.cloud.computecanada.ca/ami-media-staging/uploads/projects/Media.jpg",
        "details": "https://api.beluga.insectai.org/api/v2/projects/91/?format=api",
        "user_permissions": []
    },
    "created_at": "2025-01-21T12:12:12.802092",
    "updated_at": "2025-10-08T21:19:53.928720",
    "latitude": 13.18896,
    "longitude": 101.63569,
    "first_date": "2024-07-25",
    "last_date": "2024-09-27",
    "device": {
        "id": 94,
        "name": "Default device",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/devices/94/?format=api",
        "user_permissions": []
    },
    "research_site": {
        "id": 88,
        "name": "Default site",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/sites/88/?format=api",
        "user_permissions": []
    },
    "jobs": [
        {
            "id": 1128,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1128/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2025-01-21T12:12:28.860708",
            "updated_at": "2025-01-21T14:13:57.550312",
            "user_permissions": []
        }
    ],
    "data_source": {
        "id": 42,
        "name": "Thailand Data",
        "details": "https://api.beluga.insectai.org/api/v2/storage/42/?format=api",
        "user_permissions": [],
        "uri": "s3://tha/dep000076/snapshot_images/"
    },
    "data_source_uri": "s3://tha/dep000076/snapshot_images/",
    "data_source_total_files": 95078,
    "data_source_total_size": 305653894148,
    "data_source_total_size_display": "284.7 GB",
    "data_source_last_checked": "2025-01-21T14:13:52.156510",
    "data_source_subdir": "dep000076/snapshot_images",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 23402108,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402108/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031409-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T122015Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=dfaee1dab5a04e41c5de95d0ef4c3c04ffe4bcc94eee0ee1a6f7c0f723e658f1",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:14:09",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402109,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402109/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031419-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=6ceebac62fa5f64d974259b7f9abc9cfb7089434eaae95ba1491418cee5ab727",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:14:19",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402107,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402107/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031359-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=a851db4f9c361220d249e193436e17b62bef7f8b29f44bd942900db78e2f74f8",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:13:59",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402106,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402106/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031349-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142301Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=59099a5c59eebec9e8f0b58e9b50d25dd1819b650c9037a40d65c90dea713ce0",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:13:49",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402098,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402098/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031229-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=d3d85c3e231f5270391c317d65578225673aff4013f352fcaf0cd502285edd95",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:12:29",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402104,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402104/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031329-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=220269535211b9c1f1977d3c9495a0eef990d6fe4fcdd57fac4502498af13b8e",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:13:29",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402097,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402097/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031219-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c6435f7f0d7b15bd523e19fbbddfca21c774af84971eced91e52c49cd963b3c4",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:12:19",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402101,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402101/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031259-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2282a570ddb30e3f24fb0c6e86caed8424d97f7e4bba952ba481cc3f2e9aaa0f",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:12:59",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402105,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402105/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031339-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=064ec3bd5a7108dbb9d23037f22b02bc3827c9ae1c10c8c8ed2c722e244559f6",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:13:39",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23402103,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23402103/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000076/snapshot_images/20240817031319-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=7409a171a46a9e1abbc671636327df98e87687a81ca96c78d4e51d209ec68de6",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-17T03:13:19",
            "event": {
                "id": 5489,
                "details": "https://api.beluga.insectai.org/api/v2/events/5489/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}