Deployment Instance
A model viewset that uses different serializers for the list and detail views.
GET /api/v2/deployments/111/?format=api
{ "id": 111, "name": "Panama - trap 4", "details": "https://api.beluga.insectai.org/api/v2/deployments/111/?format=api", "image": null, "events": [ { "id": 3191, "name": "Friday, Nov 10 2023", "details": "https://api.beluga.insectai.org/api/v2/events/3191/?format=api", "occurrences_count": 3, "taxa_count": 0, "user_permissions": [] }, { "id": 3834, "name": "Wednesday, Nov 15 2023", "details": "https://api.beluga.insectai.org/api/v2/events/3834/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3192, "name": "Tuesday, Nov 28-29 2023", "details": "https://api.beluga.insectai.org/api/v2/events/3192/?format=api", "occurrences_count": 8, "taxa_count": 0, "user_permissions": [] }, { "id": 3193, "name": "Tuesday, Dec 5-6 2023", "details": "https://api.beluga.insectai.org/api/v2/events/3193/?format=api", "occurrences_count": 7, "taxa_count": 0, "user_permissions": [] }, { "id": 3194, "name": "Tuesday, Dec 12-13 2023", "details": "https://api.beluga.insectai.org/api/v2/events/3194/?format=api", "occurrences_count": 87, "taxa_count": 0, "user_permissions": [] }, { "id": 3210, "name": "Tuesday, Dec 19-20 2023", "details": "https://api.beluga.insectai.org/api/v2/events/3210/?format=api", "occurrences_count": 63, "taxa_count": 0, "user_permissions": [] }, { "id": 3196, "name": "Tuesday, Dec 26-27 2023", "details": "https://api.beluga.insectai.org/api/v2/events/3196/?format=api", "occurrences_count": 29, "taxa_count": 0, "user_permissions": [] }, { "id": 3197, "name": "Tuesday, Jan 2-3 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3197/?format=api", "occurrences_count": 316, "taxa_count": 0, "user_permissions": [] }, { "id": 3198, "name": "Tuesday, Jan 9-10 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3198/?format=api", "occurrences_count": 86, "taxa_count": 0, "user_permissions": [] }, { "id": 3199, "name": "Tuesday, Jan 23-24 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3199/?format=api", "occurrences_count": 39, "taxa_count": 0, "user_permissions": [] }, { "id": 3200, "name": "Tuesday, Jan 30-31 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3200/?format=api", "occurrences_count": 152, "taxa_count": 0, "user_permissions": [] }, { "id": 3201, "name": "Tuesday, Feb 6-7 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3201/?format=api", "occurrences_count": 92, "taxa_count": 0, "user_permissions": [] }, { "id": 3202, "name": "Tuesday, Feb 13-14 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3202/?format=api", "occurrences_count": 48, "taxa_count": 0, "user_permissions": [] }, { "id": 3203, "name": "Friday, Feb 16 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3203/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3204, "name": "Tuesday, Feb 20-21 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3204/?format=api", "occurrences_count": 46, "taxa_count": 0, "user_permissions": [] }, { "id": 3205, "name": "Wednesday, Feb 21 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3205/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3206, "name": "Tuesday, Feb 27-28 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3206/?format=api", "occurrences_count": 69, "taxa_count": 0, "user_permissions": [] }, { "id": 3207, "name": "Tuesday, Mar 5-6 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3207/?format=api", "occurrences_count": 62, "taxa_count": 0, "user_permissions": [] }, { "id": 3208, "name": "Sunday, Mar 10 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3208/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3209, "name": "Tuesday, Mar 12-13 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3209/?format=api", "occurrences_count": 78, "taxa_count": 0, "user_permissions": [] }, { "id": 3835, "name": "Tuesday, Mar 19-20 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3835/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3836, "name": "Tuesday, Mar 26-27 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3836/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3837, "name": "Tuesday, Apr 2-3 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3837/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3838, "name": "Wednesday, Apr 3 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3838/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3839, "name": "Tuesday, Apr 9-10 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3839/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3840, "name": "Wednesday, Apr 10 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3840/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3841, "name": "Tuesday, Apr 16-17 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3841/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3842, "name": "Wednesday, Apr 17 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3842/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3843, "name": "Tuesday, Apr 23-24 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3843/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3844, "name": "Wednesday, Apr 24 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3844/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3845, "name": "Tuesday, Apr 30-1 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3845/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3846, "name": "Wednesday, May 1 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3846/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3847, "name": "Tuesday, May 7-8 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3847/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 3848, "name": "Wednesday, May 8 2024", "details": "https://api.beluga.insectai.org/api/v2/events/3848/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 4566, "name": "Tuesday, Jul 30-31 2024", "details": "https://api.beluga.insectai.org/api/v2/events/4566/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 4567, "name": "Wednesday, Jul 31 2024", "details": "https://api.beluga.insectai.org/api/v2/events/4567/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] } ], "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=111", "events_count": 34, "captures_count": 85662, "occurrences_count": 1185, "taxa_count": 102, "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:46:32.239011", "updated_at": "2025-10-08T21:19:53.919984", "latitude": 9.1665498, "longitude": -79.8370742, "first_date": "2023-11-10", "last_date": "2024-07-31", "device": null, "research_site": null, "jobs": [ { "id": 827, "details": "https://api.beluga.insectai.org/api/v2/jobs/827/?format=api", "status": "SUCCESS", "job_type": { "name": "Data storage sync", "key": "data_storage_sync" }, "created_at": "2024-09-03T17:11:44.120967", "updated_at": "2024-11-13T17:15:33.851884", "user_permissions": [] }, { "id": 611, "details": "https://api.beluga.insectai.org/api/v2/jobs/611/?format=api", "status": "SUCCESS", "job_type": { "name": "Unknown", "key": "unknown" }, "created_at": "2024-04-29T14:54:41.282768", "updated_at": "2024-11-13T17:15:34.265065", "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/dep000020/" }, "data_source_uri": "s3://pan/dep000020/", "data_source_total_files": 85662, "data_source_total_size": 246383378808, "data_source_total_size_display": "229.5 GB", "data_source_last_checked": "2024-09-20T06:19:08.580520", "data_source_subdir": "dep000020", "data_source_regex": "", "description": "dep000020", "example_captures": [ { "id": 8422771, "details": "https://api.beluga.insectai.org/api/v2/captures/8422771/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-eduardo-navarro-572483.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153811Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=d75f2f6170787e12a37ef8baf2246be14870694cdbe0e59812970335c89be8cb", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8422766, "details": "https://api.beluga.insectai.org/api/v2/captures/8422766/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-adolfo-alba-781894.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c9f81f13b2d05c239f8673d02f2585d71490d7c47a2c81da7b2dcbed7d42fe75", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8422769, "details": "https://api.beluga.insectai.org/api/v2/captures/8422769/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-eduardo-navarro-346316.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=077d015ac72a1b5afddd5cb97b3e9cbf4dbdc5c2d70fe0c777bd28cbe5d2d442", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8422767, "details": "https://api.beluga.insectai.org/api/v2/captures/8422767/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-adolfo-alba-786349.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c9556c3ba76a2d7586c920ce318b536f615ca895fc05e19583814bbee48b9f54", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8422765, "details": "https://api.beluga.insectai.org/api/v2/captures/8422765/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-adolfo-alba-659091.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2f5cb2ea251040926b610a45e22e95383315944245b6981d8524b0eb80d1bf22", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8422770, "details": "https://api.beluga.insectai.org/api/v2/captures/8422770/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-eduardo-navarro-413875.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=909d18dead1b747add3e477815ceeb4f2011ccb736282c0f5286b37b02b2de79", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8422768, "details": "https://api.beluga.insectai.org/api/v2/captures/8422768/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-eduardo-navarro-237983.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=bacb5917ecea67740c0ad5da1032afaf3fc8b9815cf7e2236981291d4d544fb4", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8422772, "details": "https://api.beluga.insectai.org/api/v2/captures/8422772/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/pan-dep000020-eduardo-navarro-589622.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=670624dcdebdd82130da1c241d2863fd1ee1bf6db0839b25b2fa6a28ac840c80", "width": null, "height": null, "timestamp": null, "event": null, "user_permissions": [] }, { "id": 8363330, "details": "https://api.beluga.insectai.org/api/v2/captures/8363330/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/20231110215039-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153812Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=f39cce583cb8d5934fa521fc58c7b7455fdda747c21e5cebc44aeb4eb43f5865", "width": 4096, "height": 2160, "timestamp": "2023-11-10T21:50:39", "event": { "id": 3191, "details": "https://api.beluga.insectai.org/api/v2/events/3191/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 8363318, "details": "https://api.beluga.insectai.org/api/v2/captures/8363318/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/pan/dep000020/snapshot_images/20231110214839-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=951e406b7eb1113e1bb05c083ce51481%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T153813Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=182c53f113a03b9ff4948c6f7816ae244399e7288dbad7128753a0e6ff7e96de", "width": 4096, "height": 2160, "timestamp": "2023-11-10T21:48:39", "event": { "id": 3191, "details": "https://api.beluga.insectai.org/api/v2/events/3191/?format=api", "user_permissions": [] }, "user_permissions": [] } ], "manually_uploaded_captures": [], "user_permissions": [] }