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

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

{
    "id": 112,
    "name": "Panama - trap 5",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/112/?format=api",
    "image": null,
    "events": [
        {
            "id": 3849,
            "name": "Friday, Sep 15 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3849/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3165,
            "name": "Friday, Nov 10-11 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3165/?format=api",
            "occurrences_count": 293,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3166,
            "name": "Saturday, Nov 11-12 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3166/?format=api",
            "occurrences_count": 223,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3167,
            "name": "Sunday, Nov 12-13 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3167/?format=api",
            "occurrences_count": 363,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3168,
            "name": "Monday, Nov 13-14 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3168/?format=api",
            "occurrences_count": 412,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3169,
            "name": "Tuesday, Nov 14 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3169/?format=api",
            "occurrences_count": 15,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3170,
            "name": "Wednesday, Nov 15 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3170/?format=api",
            "occurrences_count": 2,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3171,
            "name": "Tuesday, Nov 28-29 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3171/?format=api",
            "occurrences_count": 11,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3172,
            "name": "Tuesday, Dec 5-6 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3172/?format=api",
            "occurrences_count": 150,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3173,
            "name": "Tuesday, Dec 12-14 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3173/?format=api",
            "occurrences_count": 323,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3174,
            "name": "Monday, Feb 12 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3174/?format=api",
            "occurrences_count": 7,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3175,
            "name": "Wednesday, Feb 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3175/?format=api",
            "occurrences_count": 36,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3850,
            "name": "Wednesday, Mar 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3850/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3851,
            "name": "Friday, Apr 12 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3851/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3852,
            "name": "Tuesday, Apr 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3852/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3853,
            "name": "Tuesday, Apr 23-24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3853/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3854,
            "name": "Tuesday, Apr 30-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3854/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3855,
            "name": "Tuesday, May 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3855/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3856,
            "name": "Wednesday, May 8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/3856/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 4568,
            "name": "Wednesday, Aug 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/4568/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=112",
    "events_count": 19,
    "captures_count": 88351,
    "occurrences_count": 1835,
    "taxa_count": 115,
    "project": {
        "id": 46,
        "name": "AMBER - Panama",
        "image": "https://object-arbutus.cloud.computecanada.ca/ami-media-staging/uploads/projects/alan-turing-institute9245.logowik.com_Tv23tdP.png",
        "details": "https://api.beluga.insectai.org/api/v2/projects/46/?format=api",
        "user_permissions": []
    },
    "created_at": "2024-04-25T09:47:21.548539",
    "updated_at": "2025-10-08T21:19:53.921565",
    "latitude": 9.156513,
    "longitude": -79.8482278,
    "first_date": "2023-09-15",
    "last_date": "2024-08-08",
    "device": null,
    "research_site": null,
    "jobs": [
        {
            "id": 828,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/828/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-09-03T17:12:42.767643",
            "updated_at": "2024-11-13T17:15:33.848066",
            "user_permissions": []
        },
        {
            "id": 605,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/605/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-04-29T14:49:12.560684",
            "updated_at": "2024-11-13T17:15:34.277060",
            "user_permissions": []
        }
    ],
    "data_source": {
        "id": 20,
        "name": "Panama data",
        "details": "https://api.beluga.insectai.org/api/v2/storage/20/?format=api",
        "user_permissions": [],
        "uri": "s3://pan/dep000021/"
    },
    "data_source_uri": "s3://pan/dep000021/",
    "data_source_total_files": 88351,
    "data_source_total_size": 92264362915,
    "data_source_total_size_display": "85.9 GB",
    "data_source_last_checked": "2024-09-20T06:19:30.784967",
    "data_source_subdir": "dep000021",
    "data_source_regex": "",
    "description": "dep000021",
    "example_captures": [
        {
            "id": 8346714,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8346714/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/pan-dep000021-adolfo-alba-927301.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=67bc05a2a3cfb13ac6bc5668d8b7934da74f20cc912216065ed0fa87484784d6",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8346712,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8346712/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/pan-dep000021-adolfo-alba-732959.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=eb934126813b3ae2654ad9c69d7d236e3e6defa28952216d67ccb470fa4afc30",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8346711,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8346711/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/pan-dep000021-adolfo-alba-483307.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c35f43d402e489243bf81e6d09d9e9364ae74e1d55ed0c4772688f6ccdb7be7d",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8346713,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8346713/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/pan-dep000021-adolfo-alba-764655.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142302Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=9eeb54b209d601c00fe932b5650e7d12bb9092b610026c86965d98c51326c2a3",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 8257967,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8257967/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/20231115054110-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142303Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=df796e07b52013b4aeff2220188f1e6d198fc60dd1b8bb9eb91355fbb26fe956",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-15T05:41:10",
            "event": {
                "id": 3170,
                "details": "https://api.beluga.insectai.org/api/v2/events/3170/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8257962,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8257962/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/20231115054020-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142303Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=974b6533fb5d214ccb1511dfe8be58acdf494694058202d288bf841b019c054b",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-15T05:40:20",
            "event": {
                "id": 3170,
                "details": "https://api.beluga.insectai.org/api/v2/events/3170/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8257664,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8257664/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/20231114185729-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142303Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=47ceb605e023b792c22aa6d71de11482aab704bbce43f0deea9647d3e7a53e67",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-14T18:57:29",
            "event": {
                "id": 3169,
                "details": "https://api.beluga.insectai.org/api/v2/events/3169/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8257665,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8257665/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/20231114185739-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142303Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=94c7c6e1d2dff017facde4c782ea9d131a65a37a22f29462cff89694907f4932",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-14T18:57:39",
            "event": {
                "id": 3169,
                "details": "https://api.beluga.insectai.org/api/v2/events/3169/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8257663,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8257663/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/20231114185719-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142304Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=76125dae3e3cda235625caf8f7a5d55cd9555ed5e8ec55b762fd44cf89cb4a15",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-14T18:57:19",
            "event": {
                "id": 3169,
                "details": "https://api.beluga.insectai.org/api/v2/events/3169/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 8257580,
            "details": "https://api.beluga.insectai.org/api/v2/captures/8257580/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000021/snapshot_images/20231114184329-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T142304Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=72696ac73f97f64f3f80b63afec451e9cc9c452bfaed9ab810279ffcd8985c45",
            "width": 4096,
            "height": 2160,
            "timestamp": "2023-11-14T18:43:29",
            "event": {
                "id": 3169,
                "details": "https://api.beluga.insectai.org/api/v2/events/3169/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}