Deployment Instance
A model viewset that uses different serializers for the list and detail views.
GET /api/v2/deployments/244/?format=api
{ "id": 244, "name": "Costa Rica - Butterfly", "details": "https://api.beluga.insectai.org/api/v2/deployments/244/?format=api", "image": null, "events": [ { "id": 6099, "name": "Wednesday, Jan 31-1 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6099/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6100, "name": "Friday, Feb 2-3 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6100/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6103, "name": "Sunday, Feb 4-5 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6103/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6106, "name": "Monday, Feb 5-6 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6106/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6110, "name": "Wednesday, Feb 7-8 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6110/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6113, "name": "Friday, Feb 9-10 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6113/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6115, "name": "Monday, Feb 12-13 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6115/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6117, "name": "Wednesday, Feb 14-15 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6117/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6121, "name": "Friday, Feb 16-17 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6121/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6122, "name": "Monday, Feb 19-20 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6122/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6127, "name": "Wednesday, Feb 21-22 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6127/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6133, "name": "Friday, Feb 23-24 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6133/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6138, "name": "Monday, Feb 26-27 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6138/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6142, "name": "Wednesday, Feb 28-29 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6142/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6146, "name": "Friday, Mar 1 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6146/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6150, "name": "Saturday, Mar 2 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6150/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6157, "name": "Monday, Mar 4-5 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6157/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6164, "name": "Wednesday, Mar 6-7 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6164/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6171, "name": "Monday, Mar 11-12 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6171/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6178, "name": "Wednesday, Mar 13-14 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6178/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6185, "name": "Friday, Mar 15-16 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6185/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6192, "name": "Monday, Mar 18-19 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6192/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6199, "name": "Wednesday, Mar 20-21 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6199/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6206, "name": "Friday, Mar 22-23 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6206/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6213, "name": "Monday, Mar 25-26 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6213/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6220, "name": "Wednesday, Mar 27-28 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6220/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6228, "name": "Friday, Mar 29-30 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6238, "name": "Monday, Apr 1-2 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6238/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6247, "name": "Wednesday, Apr 3-4 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6247/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6255, "name": "Friday, Apr 5-6 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6255/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6264, "name": "Monday, Apr 8-9 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6264/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6272, "name": "Wednesday, Apr 10-11 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6272/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6280, "name": "Friday, Apr 12-13 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6280/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6288, "name": "Monday, Apr 15-16 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6288/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6296, "name": "Wednesday, Apr 17-18 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6296/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6304, "name": "Friday, Apr 19-20 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6304/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6315, "name": "Monday, Apr 22-23 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6315/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6323, "name": "Wednesday, Apr 24-25 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6323/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6358, "name": "Friday, Apr 26-27 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6358/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 6360, "name": "Monday, Apr 29-30 2024", "details": "https://api.beluga.insectai.org/api/v2/events/6360/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] } ], "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=244", "events_count": 41, "captures_count": 105608, "occurrences_count": 0, "taxa_count": 0, "project": { "id": 88, "name": "Costa Rica- Labelling", "image": "https://object-arbutus.cloud.computecanada.ca/ami-media-staging/uploads/projects/20240205_172826.jpg", "details": "https://api.beluga.insectai.org/api/v2/projects/88/?format=api", "user_permissions": [] }, "created_at": "2025-01-13T07:19:55.238675", "updated_at": "2025-10-08T21:19:53.632242", "latitude": 9.937355, "longitude": -84.050435, "first_date": "2024-01-31", "last_date": "2024-04-30", "device": { "id": 91, "name": "Default device", "details": "https://api.beluga.insectai.org/api/v2/deployments/devices/91/?format=api", "user_permissions": [] }, "research_site": { "id": 85, "name": "Default site", "details": "https://api.beluga.insectai.org/api/v2/deployments/sites/85/?format=api", "user_permissions": [] }, "jobs": [ { "id": 1139, "details": "https://api.beluga.insectai.org/api/v2/jobs/1139/?format=api", "status": "SUCCESS", "job_type": { "name": "Data storage sync", "key": "data_storage_sync" }, "created_at": "2025-01-21T12:17:47.211189", "updated_at": "2025-01-21T13:42:18.169532", "user_permissions": [] }, { "id": 1115, "details": "https://api.beluga.insectai.org/api/v2/jobs/1115/?format=api", "status": "SUCCESS", "job_type": { "name": "Data storage sync", "key": "data_storage_sync" }, "created_at": "2025-01-21T10:49:17.676260", "updated_at": "2025-01-21T13:41:23.391517", "user_permissions": [] } ], "data_source": { "id": 40, "name": "Costa Rica Data", "details": "https://api.beluga.insectai.org/api/v2/storage/40/?format=api", "user_permissions": [], "uri": "s3://cri/dep000031/snapshot_images/" }, "data_source_uri": "s3://cri/dep000031/snapshot_images/", "data_source_total_files": 105608, "data_source_total_size": 255444558190, "data_source_total_size_display": "237.9 GB", "data_source_last_checked": "2025-01-21T13:42:10.546571", "data_source_subdir": "dep000031/snapshot_images", "data_source_regex": null, "description": "dep000031", "example_captures": [ { "id": 20914727, "details": "https://api.beluga.insectai.org/api/v2/captures/20914727/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183150-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=f9570f075a331404934e8968e5d29f4497c1bd00d3100a9f256c282592ccb5e5", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:31:50", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20914729, "details": "https://api.beluga.insectai.org/api/v2/captures/20914729/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183209-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=7d6294baa6a4b2a582f8fb6390c88b6ca37e39327306087aac311d681c33dd87", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:32:09", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20914728, "details": "https://api.beluga.insectai.org/api/v2/captures/20914728/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183159-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=6ec8e102e292be3ee5bf3c1ab23b956d70dc2b1904615ee3aa81286ac8872b3f", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:31:59", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20914726, "details": "https://api.beluga.insectai.org/api/v2/captures/20914726/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183140-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=6110c4f5e944f8e208e271174ddc468cb0b2c6dda9099f93129ca062096bbf0c", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:31:40", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20914725, "details": "https://api.beluga.insectai.org/api/v2/captures/20914725/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183130-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2e3f34179157d40d58dc8dd958a2113ac65add206a334cad6dce5bb7cb7f6ba5", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:31:30", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20914731, "details": "https://api.beluga.insectai.org/api/v2/captures/20914731/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183229-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=e2992590b0c70973e97dcf0ac1c22ea1f668e05eb82626d717d05538fd9e8c9a", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:32:29", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20914732, "details": "https://api.beluga.insectai.org/api/v2/captures/20914732/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183239-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=315a2dc24d7076b486d37804fc1c1d7c91b52c8c26856ba4945332bb3a53eaf0", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:32:39", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 21019979, "details": "https://api.beluga.insectai.org/api/v2/captures/21019979/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240405183139-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=17793744a18a630efef02fedda8a5e0f513505f4d18fb4192281355fdd8c2c9d", "width": 4096, "height": 2160, "timestamp": "2024-04-05T18:31:39", "event": { "id": 6255, "details": "https://api.beluga.insectai.org/api/v2/events/6255/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 21019981, "details": "https://api.beluga.insectai.org/api/v2/captures/21019981/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240405183159-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140839Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=165f9db4e9de221fea11ea96a3a390f0d4fb1dd5bbf03ccf0004b366f08281cc", "width": 4096, "height": 2160, "timestamp": "2024-04-05T18:31:59", "event": { "id": 6255, "details": "https://api.beluga.insectai.org/api/v2/events/6255/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20914724, "details": "https://api.beluga.insectai.org/api/v2/captures/20914724/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/cri/dep000031/snapshot_images/01-20240329183120-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140840Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=454d26464cf52d1730f08aafe94ea56a1ba740972b6002b00810b2e409597df8", "width": 4096, "height": 2160, "timestamp": "2024-03-29T18:31:20", "event": { "id": 6228, "details": "https://api.beluga.insectai.org/api/v2/events/6228/?format=api", "user_permissions": [] }, "user_permissions": [] } ], "manually_uploaded_captures": [], "user_permissions": [] }