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

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

{
    "id": 144,
    "name": "SBWR",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/144/?format=api",
    "image": null,
    "events": [
        {
            "id": 4502,
            "name": "Wednesday, Apr 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4502/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4503,
            "name": "Friday, Apr 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4503/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4504,
            "name": "Monday, Apr 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4504/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4505,
            "name": "Wednesday, Apr 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4505/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4506,
            "name": "Friday, Apr 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4506/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4507,
            "name": "Monday, Apr 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4507/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4508,
            "name": "Wednesday, May 1-2 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4508/?format=api",
            "occurrences_count": 1,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4509,
            "name": "Friday, May 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4509/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4510,
            "name": "Monday, May 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4510/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4511,
            "name": "Wednesday, May 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4511/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4512,
            "name": "Friday, May 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4512/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4513,
            "name": "Monday, May 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4513/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4514,
            "name": "Wednesday, May 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4514/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4515,
            "name": "Friday, May 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4515/?format=api",
            "occurrences_count": 1,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4516,
            "name": "Monday, May 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4516/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4517,
            "name": "Wednesday, May 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4518,
            "name": "Friday, May 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4518/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4519,
            "name": "Monday, May 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4519/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4520,
            "name": "Wednesday, May 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4520/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4521,
            "name": "Friday, May 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4521/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4522,
            "name": "Monday, Jun 3-4 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4522/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4523,
            "name": "Wednesday, Jun 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4523/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4524,
            "name": "Friday, Jun 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4524/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4525,
            "name": "Monday, Jun 10-11 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4525/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4526,
            "name": "Wednesday, Jun 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4526/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4527,
            "name": "Friday, Jun 14-15 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4527/?format=api",
            "occurrences_count": 1,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4528,
            "name": "Monday, Jun 17-18 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4528/?format=api",
            "occurrences_count": 1,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4529,
            "name": "Wednesday, Jun 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4529/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4530,
            "name": "Friday, Jun 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4530/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4531,
            "name": "Monday, Jun 24-25 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4531/?format=api",
            "occurrences_count": 1,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=144",
    "events_count": 30,
    "captures_count": 97212,
    "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:41:57.175041",
    "updated_at": "2025-10-08T21:19:53.953018",
    "latitude": 0.0,
    "longitude": 0.0,
    "first_date": "2024-04-17",
    "last_date": "2024-06-25",
    "device": null,
    "research_site": null,
    "jobs": [
        {
            "id": 972,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/972/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-09-20T05:58:15.141626",
            "updated_at": "2024-11-13T17:15:33.402881",
            "user_permissions": []
        },
        {
            "id": 735,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/735/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-06-05T10:44:14.308684",
            "updated_at": "2024-11-13T17:15:33.931907",
            "user_permissions": []
        },
        {
            "id": 733,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/733/?format=api",
            "status": "FAILURE",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-06-05T10:42:08.204854",
            "updated_at": "2024-11-13T17:15:33.936203",
            "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/dep000052/"
    },
    "data_source_uri": "s3://sgp/dep000052/",
    "data_source_total_files": 97212,
    "data_source_total_size": 298559341788,
    "data_source_total_size_display": "278.1 GB",
    "data_source_last_checked": "2024-09-20T06:01:22.927726",
    "data_source_subdir": "dep000052",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 14333765,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333765/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193009-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154229Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=7344c48c727f8436a1af3f91e2b860e6abd9240bc0f30410433b48f7d3567a80",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:30:09",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333805,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333805/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193649-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154229Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=f54daf98a59252984c7cf61d40ec94a8ebc29cc3ef915854e9d6fba90e438dbc",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:36:49",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333808,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333808/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193719-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154230Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=224c45110cc1c2390d7cead510bdde33febdab00dd51256056ac410ed4459bdf",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:37:19",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333802,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333802/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193619-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154230Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=7368c977f43887e71626727460b71053c8d4964175c74b26f1224a72b54088e2",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:36:19",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333824,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333824/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193959-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154230Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=5b435b1a53e20083f58e720eb8dbb0467814ac9d097c5aed33a8926022ebaf21",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:39:59",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333822,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333822/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193939-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154230Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=cac303253e694aa7277ca7162f576e79d7fdadd9635d904fd5eb475e430c0ce9",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:39:39",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333814,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333814/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193819-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154230Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=67cad27d376b1ce6c7f3a695aa2c551bb706594e29ce56a7d21184dab4bbfbb7",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:38:19",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333827,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333827/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522194029-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154230Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=85c52ee3205f5a031265009c9a0f7f6f92efb69c449ccf54da0139cc831aa1b2",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:40:29",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333804,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333804/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193639-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154230Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c8e271a65b7526318361d02a9944cc1c85105c201219af267c57ae23bb03e3d2",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:36:39",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 14333810,
            "details": "https://api.beluga.insectai.org/api/v2/captures/14333810/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000052/snapshot_images/01-20240522193739-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T154231Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=df29e2902db321997f84dfe48e9499ae14486f6ac736d2b4e6c44c647785676b",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-05-22T19:37:39",
            "event": {
                "id": 4517,
                "details": "https://api.beluga.insectai.org/api/v2/events/4517/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}