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

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

{
    "id": 106,
    "name": "Salisbury",
    "details": "https://api.beluga.insectai.org/api/v2/deployments/106/?format=api",
    "image": null,
    "events": [
        {
            "id": 3524,
            "name": "Wednesday, Aug 9-10 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3524/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3525,
            "name": "Friday, Aug 11-12 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3525/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3526,
            "name": "Monday, Aug 14-15 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3526/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3527,
            "name": "Wednesday, Aug 16-17 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3527/?format=api",
            "occurrences_count": 4,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3528,
            "name": "Friday, Aug 18-19 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3528/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3529,
            "name": "Monday, Aug 21-22 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3529/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3530,
            "name": "Wednesday, Aug 23-24 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3530/?format=api",
            "occurrences_count": 4,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3531,
            "name": "Friday, Aug 25-26 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3531/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3532,
            "name": "Monday, Aug 28-29 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3532/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3533,
            "name": "Wednesday, Aug 30-31 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3533/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3534,
            "name": "Friday, Sep 1-2 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3534/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3535,
            "name": "Monday, Sep 4-5 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3535/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3536,
            "name": "Wednesday, Sep 6-7 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3536/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3537,
            "name": "Friday, Sep 8-9 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3537/?format=api",
            "occurrences_count": 6,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3538,
            "name": "Monday, Sep 11-12 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3538/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3539,
            "name": "Wednesday, Sep 13-14 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3539/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3540,
            "name": "Friday, Sep 15-16 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3540/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3541,
            "name": "Monday, Sep 18-19 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3541/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3542,
            "name": "Wednesday, Sep 20-21 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3542/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3543,
            "name": "Friday, Sep 22-23 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3543/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3544,
            "name": "Monday, Sep 25-26 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3544/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3545,
            "name": "Wednesday, Sep 27-28 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3545/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3546,
            "name": "Friday, Sep 29-30 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3546/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3547,
            "name": "Monday, Oct 2-3 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3547/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3548,
            "name": "Wednesday, Oct 4-5 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3548/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3549,
            "name": "Friday, Oct 6-7 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3549/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3550,
            "name": "Monday, Oct 9-10 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3550/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3551,
            "name": "Wednesday, Oct 11-12 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3551/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3552,
            "name": "Friday, Oct 13-14 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3552/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3553,
            "name": "Monday, Oct 16-17 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3553/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3554,
            "name": "Wednesday, Oct 18-19 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3554/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3555,
            "name": "Friday, Oct 20-21 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3555/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3556,
            "name": "Monday, Oct 23-24 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3556/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3557,
            "name": "Wednesday, Oct 25-26 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3557/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3558,
            "name": "Friday, Oct 27-28 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3558/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3559,
            "name": "Monday, Oct 30-31 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3559/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3560,
            "name": "Wednesday, Nov 1-2 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3560/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3561,
            "name": "Friday, Nov 3-4 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3561/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        },
        {
            "id": 3562,
            "name": "Monday, Nov 6-7 2023",
            "details": "https://api.beluga.insectai.org/api/v2/events/3562/?format=api",
            "occurrences_count": 0,
            "taxa_count": 0,
            "user_permissions": []
        }
    ],
    "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=106",
    "events_count": 39,
    "captures_count": 87444,
    "occurrences_count": 6,
    "taxa_count": 6,
    "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:40:42.560678",
    "updated_at": "2025-10-08T21:19:53.958263",
    "latitude": 51.18193,
    "longitude": -2.25014,
    "first_date": "2023-08-09",
    "last_date": "2023-11-07",
    "device": null,
    "research_site": null,
    "jobs": [
        {
            "id": 666,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/666/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-05-01T23:19:09.989590",
            "updated_at": "2024-11-13T17:15:34.132182",
            "user_permissions": []
        },
        {
            "id": 665,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/665/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Unknown",
                "key": "unknown"
            },
            "created_at": "2024-05-01T23:11:36.551735",
            "updated_at": "2024-11-13T17:15:34.136165",
            "user_permissions": []
        },
        {
            "id": 641,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/641/?format=api",
            "status": "SUCCESS",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-04-30T10:29:01.232718",
            "updated_at": "2024-11-13T17:15:34.186981",
            "user_permissions": []
        },
        {
            "id": 582,
            "details": "https://api.beluga.insectai.org/api/v2/jobs/582/?format=api",
            "status": "FAILURE",
            "job_type": {
                "name": "Data storage sync",
                "key": "data_storage_sync"
            },
            "created_at": "2024-04-25T10:31:02.706169",
            "updated_at": "2024-11-13T17:15:34.329947",
            "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/dep000015/?regex=null"
    },
    "data_source_uri": "s3://gbr/dep000015/?regex=null",
    "data_source_total_files": 87444,
    "data_source_total_size": 411059547858,
    "data_source_total_size_display": "382.8 GB",
    "data_source_last_checked": "2024-05-01T23:25:47.056691",
    "data_source_subdir": "dep000015",
    "data_source_regex": "null",
    "description": "Salisbury - dep000015",
    "example_captures": [
        {
            "id": 9325465,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325465/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230910_053500.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325517,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325517/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230916_162100.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325613,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325613/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230928_155400.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325245,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325245/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230813_173300.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325249,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325249/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230814_045400.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325361,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325361/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230828_051500.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325461,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325461/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230909_163700.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325525,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325525/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230917_161900.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325365,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325365/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20230828_170300.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        },
        {
            "id": 9325646,
            "details": "https://api.beluga.insectai.org/api/v2/captures/9325646/?format=api",
            "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/dep000015/audible_recordings/ENGLAND_20231002_154500.wav",
            "width": null,
            "height": null,
            "timestamp": null,
            "event": null,
            "user_permissions": []
        }
    ],
    "manually_uploaded_captures": [],
    "user_permissions": []
}