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

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

{
    "id": 277,
    "name": "Puang Thong 2 (lake)",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/277/?format=api",
    "image": null,
    "events": [
        {
            "id": 6670,
            "name": "Thursday, Jul 25-26 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6670/?format=api",
            "occurrences_count": 354,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6671,
            "name": "Friday, Jul 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6671/?format=api",
            "occurrences_count": 270,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6672,
            "name": "Monday, Jul 29-30 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6672/?format=api",
            "occurrences_count": 282,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6673,
            "name": "Wednesday, Jul 31-1 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6673/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6674,
            "name": "Friday, Aug 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6674/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6675,
            "name": "Monday, Aug 5-6 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6675/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6676,
            "name": "Wednesday, Aug 7-8 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6676/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6677,
            "name": "Friday, Aug 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6677/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6678,
            "name": "Monday, Aug 12-13 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6678/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6679,
            "name": "Wednesday, Aug 14-15 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6679/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6680,
            "name": "Friday, Aug 16-17 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6681,
            "name": "Monday, Aug 19-20 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6681/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6682,
            "name": "Wednesday, Aug 21-22 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6682/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6683,
            "name": "Friday, Aug 23-24 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6683/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6684,
            "name": "Monday, Aug 26-27 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6684/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6685,
            "name": "Wednesday, Aug 28-29 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6685/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6686,
            "name": "Friday, Aug 30-31 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6686/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6687,
            "name": "Monday, Sep 2-3 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6687/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6688,
            "name": "Wednesday, Sep 4-5 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6688/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6689,
            "name": "Friday, Sep 6-7 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6689/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6690,
            "name": "Monday, Sep 9-10 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6690/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6691,
            "name": "Wednesday, Sep 11-12 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6691/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6692,
            "name": "Friday, Sep 13-14 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6692/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 6693,
            "name": "Monday, Sep 16 2024",
            "details": "https://api.beluga.insectai.org/api/v2/events/6693/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=277",
    "events_count": 24,
    "captures_count": 78000,
    "occurrences_count": 914,
    "taxa_count": 2,
    "project": {
        "id": 105,
        "name": "Binary Classifier Test",
        "image": null,
        "details": "https://api.beluga.insectai.org/api/v2/projects/105/?format=api",
        "user_permissions": []
    },
    "created_at": "2025-01-27T10:46:13.028517",
    "updated_at": "2025-10-08T21:19:53.930541",
    "latitude": 0.0,
    "longitude": 0.0,
    "first_date": "2024-07-25",
    "last_date": "2024-09-16",
    "device": {
        "id": 108,
        "name": "Default device",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/devices/108/?format=api",
        "user_permissions": []
    },
    "research_site": {
        "id": 102,
        "name": "Default site",
        "details": "https://api.beluga.insectai.org/api/v2/deployments/sites/102/?format=api",
        "user_permissions": []
    },
    "jobs": [
        {
            "id": 1203,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/1203/?format=api",
            "status": "FAILURE",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2025-01-27T10:47:25.174803",
            "updated_at": "2025-01-27T10:55:19.703815",
            "user_permissions": []
        }
    ],
    "data_source": {
        "id": 43,
        "name": "Thailand Data (for MB's test)",
        "details": "https://api.beluga.insectai.org/api/v2/storage/43/?format=api",
        "user_permissions": [],
        "uri": "s3://tha/dep000076/snapshot_images/?regex=null"
    },
    "data_source_uri": "s3://tha/dep000076/snapshot_images/?regex=null",
    "data_source_total_files": 78000,
    "data_source_total_size": 255354491392,
    "data_source_total_size_display": "237.8 GB",
    "data_source_last_checked": "2025-01-27T10:55:22.855100",
    "data_source_subdir": "dep000076/snapshot_images",
    "data_source_regex": "null",
    "description": "",
    "example_captures": [
        {
            "id": 24721643,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721643/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721644,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721644/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721642,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721642/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721641,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721641/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721633,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721633/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721639,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721639/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721632,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721632/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721636,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721636/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721640,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721640/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        },
        {
            "id": 24721638,
            "details": "https://api.beluga.insectai.org/api/v2/captures/24721638/?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": 6680,
                "details": "https://api.beluga.insectai.org/api/v2/events/6680/?format=api",
                "user_permissions": []
            },
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}