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

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

{
    "id": 267,
    "name": "Sakaerat (car graveyard)",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/267/?format=api",
    "image": null,
    "events": [
        {
            "id": 5447,
            "name": "Sunday, Jul 28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5447/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5448,
            "name": "Monday, Jul 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5448/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5452,
            "name": "Wednesday, Jul 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5452/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5458,
            "name": "Friday, Aug 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5464,
            "name": "Monday, Aug 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5464/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5469,
            "name": "Wednesday, Aug 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5469/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5474,
            "name": "Friday, Aug 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5474/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5479,
            "name": "Monday, Aug 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5479/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5485,
            "name": "Wednesday, Aug 14-15 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5485/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5488,
            "name": "Friday, Aug 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5488/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5495,
            "name": "Monday, Aug 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5495/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5500,
            "name": "Wednesday, Aug 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5500/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5506,
            "name": "Friday, Aug 23-24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5506/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5511,
            "name": "Monday, Aug 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5511/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5516,
            "name": "Wednesday, Aug 28-29 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5516/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5521,
            "name": "Friday, Aug 30-31 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5521/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5526,
            "name": "Monday, Sep 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5526/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5529,
            "name": "Wednesday, Sep 4-5 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5529/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5536,
            "name": "Friday, Sep 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5536/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5542,
            "name": "Monday, Sep 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5542/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5546,
            "name": "Wednesday, Sep 11-12 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5546/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5552,
            "name": "Friday, Sep 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5552/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5555,
            "name": "Monday, Sep 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5555/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5562,
            "name": "Wednesday, Sep 18-19 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5562/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5567,
            "name": "Friday, Sep 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5567/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5574,
            "name": "Monday, Sep 23-24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5574/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5579,
            "name": "Wednesday, Sep 25-26 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5579/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5583,
            "name": "Friday, Sep 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5583/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5586,
            "name": "Monday, Sep 30-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5586/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5588,
            "name": "Monday, Nov 4-5 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5588/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5591,
            "name": "Wednesday, Nov 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5591/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5595,
            "name": "Friday, Nov 8-9 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5595/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5598,
            "name": "Monday, Nov 11-12 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5598/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5601,
            "name": "Wednesday, Nov 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5601/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5604,
            "name": "Friday, Nov 15-16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5604/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5607,
            "name": "Monday, Nov 18-19 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5607/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5610,
            "name": "Wednesday, Nov 20-21 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5610/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5613,
            "name": "Friday, Nov 22-23 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5613/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5616,
            "name": "Monday, Nov 25-26 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5616/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5618,
            "name": "Wednesday, Nov 27-28 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5618/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5620,
            "name": "Friday, Nov 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5620/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 5623,
            "name": "Monday, Dec 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/5623/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=267",
    "events_count": 42,
    "captures_count": 141012,
    "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:13:01.100129",
    "updated_at": "2025-10-08T21:19:53.954777",
    "latitude": 14.50943,
    "longitude": 101.92925,
    "first_date": "2024-07-28",
    "last_date": "2024-12-03",
    "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": 1129,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1129/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2025-01-21T12:13:11.649445",
            "updated_at": "2025-01-21T14:17:24.191259",
            "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/dep000077/snapshot_images/"
    },
    "data_source_uri": "s3://tha/dep000077/snapshot_images/",
    "data_source_total_files": 141012,
    "data_source_total_size": 442022959515,
    "data_source_total_size_display": "411.7 GB",
    "data_source_last_checked": "2025-01-21T14:17:16.134582",
    "data_source_subdir": "dep000077/snapshot_images",
    "data_source_regex": null,
    "description": "",
    "example_captures": [
        {
            "id": 23286693,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23286693/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240730001510-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=a860e951af7399c1a692abe36b8229d0e88e473d51f7dedded4acb176f6accf3",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-07-30T00:15:10",
            "event": {
                "id": 5448,
                "details": "https://api.beluga.insectai.org/api/v2/events/5448/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23310025,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23310025/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240803013609-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=a2298630431609be9bf4797512020a42c70ad056d18158573c5b86a7c6e82f9f",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-03T01:36:09",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23310241,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23310241/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240803021209-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2a04e3e0058da774b1b748a9be71727f60034325e23cc2d3b1218c9f67d5a374",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-03T02:12:09",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23310242,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23310242/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240803021219-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=46cbca784b59f0ef91c64d62c2f22153ef141304483440cd98d507be73c813e9",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-03T02:12:19",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23310043,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23310043/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240803013909-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=3cef71681e54494da5eeb9a161ebff0b797c05e6e0d36a9655c9cd9227350986",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-03T01:39:09",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23306295,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23306295/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240802233429-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=8a313f9ef32a70bb02467d3b80b799bf41365b3d6dae87f14dfd51cf256b1d15",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-02T23:34:29",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23326188,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23326188/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240806033930-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b7d6c29710c342679e85038d00e122abd59aa94076118fc5dc82baa2aa8385a9",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-06T03:39:30",
            "event": {
                "id": 5464,
                "details": "https://api.beluga.insectai.org/api/v2/events/5464/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23313750,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23313750/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240803033659-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=0026f1c4ec74b965612f74e9ad73f0e4bd0d446a273cfbc10e5e583189d4652e",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-03T03:36:59",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23309896,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23309896/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240803011439-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=fa68f8cf275d051aa3b7419d44dd279672023e8a708505a1b850c848125acfdc",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-03T01:14:39",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 23310265,
            "details": "https://api.beluga.insectai.org/api/v2/captures/23310265/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/tha/dep000077/snapshot_images/20240803021609-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153815Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=95cd7113bfb09c441f7b5c7cc6679511923d64e8a6a1ebe983860492e5ac22fa",
            "width": 4096,
            "height": 2160,
            "timestamp": "2024-08-03T02:16:09",
            "event": {
                "id": 5458,
                "details": "https://api.beluga.insectai.org/api/v2/events/5458/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}