Deployment Instance
A model viewset that uses different serializers for the list and detail views.
GET /api/v2/deployments/255/?format=api
{ "id": 255, "name": "BTNR", "details": "https://api.beluga.insectai.org/api/v2/deployments/255/?format=api", "image": null, "events": [ { "id": 5653, "name": "Thursday, Apr 11 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5653/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5656, "name": "Friday, Apr 12-13 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5656/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5659, "name": "Monday, Apr 15-16 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5659/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5667, "name": "Wednesday, Apr 17-18 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5667/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5676, "name": "Friday, Apr 19-20 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5676/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5684, "name": "Monday, Apr 22-23 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5684/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5692, "name": "Wednesday, Apr 24-25 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5692/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5702, "name": "Friday, Apr 26-27 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5702/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5711, "name": "Monday, Apr 29-30 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5711/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5718, "name": "Wednesday, May 1-2 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5718/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5726, "name": "Friday, May 3-4 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5726/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5732, "name": "Monday, May 6-7 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5732/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5739, "name": "Wednesday, May 8-9 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5739/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5751, "name": "Friday, May 10-11 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5751/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5759, "name": "Monday, May 13-14 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5759/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5767, "name": "Wednesday, May 15 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5767/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5775, "name": "Friday, Jun 21-22 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5775/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] }, { "id": 5782, "name": "Monday, Jun 24-25 2024", "details": "https://api.beluga.insectai.org/api/v2/events/5782/?format=api", "occurrences_count": 0, "taxa_count": 0, "user_permissions": [] } ], "occurrences": "https://api.beluga.insectai.org/api/v2/occurrences/?format=api?deployment=255", "events_count": 18, "captures_count": 53608, "occurrences_count": 0, "taxa_count": 0, "project": { "id": 90, "name": "Singapore- Labelling Project", "image": null, "details": "https://api.beluga.insectai.org/api/v2/projects/90/?format=api", "user_permissions": [] }, "created_at": "2025-01-17T07:18:11.963540", "updated_at": "2025-10-08T21:19:53.623664", "latitude": 1.3533835, "longitude": 103.7789017, "first_date": "2024-04-11", "last_date": "2024-06-25", "device": { "id": 93, "name": "Default device", "details": "https://api.beluga.insectai.org/api/v2/deployments/devices/93/?format=api", "user_permissions": [] }, "research_site": { "id": 87, "name": "Default site", "details": "https://api.beluga.insectai.org/api/v2/deployments/sites/87/?format=api", "user_permissions": [] }, "jobs": [ { "id": 1121, "details": "https://api.beluga.insectai.org/api/v2/jobs/1121/?format=api", "status": "SUCCESS", "job_type": { "name": "Data storage sync", "key": "data_storage_sync" }, "created_at": "2025-01-21T10:55:49.813935", "updated_at": "2025-01-21T14:01:18.764016", "user_permissions": [] }, { "id": 1112, "details": "https://api.beluga.insectai.org/api/v2/jobs/1112/?format=api", "status": "SUCCESS", "job_type": { "name": "Data storage sync", "key": "data_storage_sync" }, "created_at": "2025-01-17T09:46:25.793945", "updated_at": "2025-01-21T13:38:49.869700", "user_permissions": [] } ], "data_source": { "id": 41, "name": "Singapore storage", "details": "https://api.beluga.insectai.org/api/v2/storage/41/?format=api", "user_permissions": [], "uri": "s3://sgp/dep000046/snapshot_images/" }, "data_source_uri": "s3://sgp/dep000046/snapshot_images/", "data_source_total_files": 53608, "data_source_total_size": 141351682754, "data_source_total_size_display": "131.6 GB", "data_source_last_checked": "2025-01-21T14:01:15", "data_source_subdir": "dep000046/snapshot_images", "data_source_regex": null, "description": "", "example_captures": [ { "id": 20830350, "details": "https://api.beluga.insectai.org/api/v2/captures/20830350/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240622025829-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140813Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=2fc351c79dcbc2e8383c24fbc3235341252a5ccad2ff10b1f68a644f7fae7ed3", "width": 4096, "height": 2160, "timestamp": "2024-06-22T02:58:29", "event": { "id": 5775, "details": "https://api.beluga.insectai.org/api/v2/events/5775/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20830349, "details": "https://api.beluga.insectai.org/api/v2/captures/20830349/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240622025819-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140813Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=09696b0e49594cd8b8218daddfb0b350082133651c51bb6d6808c57c484dfce6", "width": 4096, "height": 2160, "timestamp": "2024-06-22T02:58:19", "event": { "id": 5775, "details": "https://api.beluga.insectai.org/api/v2/events/5775/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20830348, "details": "https://api.beluga.insectai.org/api/v2/captures/20830348/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240622025809-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140813Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c86bcf61186a8f9d1e35db3e73cbb671688ae21fd94cd1ca305f02301ce156f9", "width": 4096, "height": 2160, "timestamp": "2024-06-22T02:58:09", "event": { "id": 5775, "details": "https://api.beluga.insectai.org/api/v2/events/5775/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20830346, "details": "https://api.beluga.insectai.org/api/v2/captures/20830346/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240622025749-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140814Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=34c43aee36ed9435f4f5c45e7c29208a80b3374422c9d6aecb1bb9184a26fa90", "width": 4096, "height": 2160, "timestamp": "2024-06-22T02:57:49", "event": { "id": 5775, "details": "https://api.beluga.insectai.org/api/v2/events/5775/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20830345, "details": "https://api.beluga.insectai.org/api/v2/captures/20830345/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240622025739-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140814Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=b7e302a023eebc71f01c59e30e529c1af05640cdb276cbaf06ee229c5ac1fdcd", "width": 4096, "height": 2160, "timestamp": "2024-06-22T02:57:39", "event": { "id": 5775, "details": "https://api.beluga.insectai.org/api/v2/events/5775/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20865625, "details": "https://api.beluga.insectai.org/api/v2/captures/20865625/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240625030350-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140814Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=62509df6b408b24fb8b6539b2011339afee2edd5463e9ba7c2f828a5c502dcd8", "width": 4096, "height": 2160, "timestamp": "2024-06-25T03:03:50", "event": { "id": 5782, "details": "https://api.beluga.insectai.org/api/v2/events/5782/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20865624, "details": "https://api.beluga.insectai.org/api/v2/captures/20865624/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240625030340-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140814Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=53d4acb7f0efee51cda1234dcd99c1333030378370f22fa39395a938c791e467", "width": 4096, "height": 2160, "timestamp": "2024-06-25T03:03:40", "event": { "id": 5782, "details": "https://api.beluga.insectai.org/api/v2/events/5782/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20865626, "details": "https://api.beluga.insectai.org/api/v2/captures/20865626/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240625030400-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140814Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=3e05b39145aa553135ca3dcbbd599fee3435f4eedf230acf8a59e53b69af8ecd", "width": 4096, "height": 2160, "timestamp": "2024-06-25T03:04:00", "event": { "id": 5782, "details": "https://api.beluga.insectai.org/api/v2/events/5782/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20830347, "details": "https://api.beluga.insectai.org/api/v2/captures/20830347/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240622025759-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140814Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=708f92b2c6c7ca5a1e69cfc7fef26e394b0a9a5ee70bffa687692877833b8113", "width": 4096, "height": 2160, "timestamp": "2024-06-22T02:57:59", "event": { "id": 5775, "details": "https://api.beluga.insectai.org/api/v2/events/5775/?format=api", "user_permissions": [] }, "user_permissions": [] }, { "id": 20865818, "details": "https://api.beluga.insectai.org/api/v2/captures/20865818/?format=api", "url": "https://ami-test-o.s3-ext.jc.rl.ac.uk/sgp/dep000046/snapshot_images/01-20240625033600-snapshot.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=f75d7a3bc98918fc129f53f0a8f434a5%2F20260403%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260403T140814Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=a700f0be7bb30090031abca507cba67ccb35cf558d370829af8b5b79c613be0f", "width": 4096, "height": 2160, "timestamp": "2024-06-25T03:36:00", "event": { "id": 5782, "details": "https://api.beluga.insectai.org/api/v2/events/5782/?format=api", "user_permissions": [] }, "user_permissions": [] } ], "manually_uploaded_captures": [], "user_permissions": [] }