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

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

{
    "id": 102,
    "name": "North Agri pos",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/102/?format=api",
    "image": null,
    "events": [],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=102",
    "events_count": 0,
    "captures_count": 0,
    "occurrences_count": 0,
    "taxa_count": 0,
    "project": {
        "id": 44,
        "name": "AgZero+",
        "image": "https://object-arbutus.cloud.computecanada.ca/ami-media-staging/uploads/projects/agzerologo.JPG",
        "details": "https://api.beluga.insectai.org/api/v2/projects/44/?format=api",
        "user_permissions": []
    },
    "created_at": "2024-04-25T09:24:10.019022",
    "updated_at": "2025-10-08T21:19:53.900348",
    "latitude": 52.336293,
    "longitude": -0.474627,
    "first_date": null,
    "last_date": null,
    "device": null,
    "research_site": null,
    "jobs": [
        {
            "id": 634,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/634/?format=api",
            "status": "FAILURE",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-04-30T10:27:13.481248",
            "updated_at": "2024-11-13T17:15:34.211758",
            "user_permissions": []
        }
    ],
    "data_source": {
        "id": 22,
        "name": "United Kingdom data",
        "details": "https://api.beluga.insectai.org/api/v2/storage/22/?format=api",
        "user_permissions": [],
        "uri": "s3://gbr/dep000011/"
    },
    "data_source_uri": "s3://gbr/dep000011/",
    "data_source_total_files": 0,
    "data_source_total_size": null,
    "data_source_total_size_display": "0 bytes",
    "data_source_last_checked": null,
    "data_source_subdir": "dep000011",
    "data_source_regex": null,
    "description": "Northamptonshire Agrischeme positive - dep000011",
    "example_captures": [],
    "manually_uploaded_captures": [],
    "user_permissions": []
}