API is in Alpha and may change at any time.
API Resources > Emergency
Get Active Unit
Get active unit for a user.
Get Active Unit
POST api/v1/emergency/get_active_unit
Request Body
Name | Type | Description | Default |
---|
Example Request Body
{}
Responses
200 A successful call with Dispatch active.
{
"success": true,
"message": "Active Dispatcher on duty.",
"data": [
{
"id": 96,
"user_id": 188790560658685954,
"user_department_id": 21,
"officer_id": 761320351,
"subdivision": null,
"description": "Status Set To: AVL",
"location": null,
"status": "AVL",
"first_on_duty_at": "05/07/2024 22:03:31",
"off_duty_at": "05/07/2024 22:03:35",
"off_duty_type": null,
"is_panic": 0,
"created_at": "05/07/2024 22:03:28",
"updated_at": "05/07/2024 22:03:31",
"attached_calls": [],
"officer": {
"id": 761320351,
"user_id": 188790560658685954,
"first_name": "Kessie",
"last_name": "Martinez",
"full_name": "Kessie Martinez",
"formatted_name": "Kessie Martinez",
"picture": null,
"date_of_birth": "06/09/2009",
"phone_number": "+1 (565) 283-2569",
"gender": "Other",
"race": "African American",
"postal": 123,
"street": "Ut accusantium sed d",
"city": "Minim ab quis explic",
"full_address": "123 Ut accusantium sed d Minim ab quis explic",
"occupation": "Incidunt illum dol",
"height": "59",
"weight": "175",
"created_at": "05/07/2024 21:55:55",
"updated_at": "05/07/2024 21:55:55"
},
"user_department": {
"id": 21,
"user_id": 188790560658685954,
"badge_number": "test",
"rank": "test",
"department": {
"id": 5,
"name": "Communications",
"initials": "DISP",
"logo": "https://static.wikia.nocookie.net/ultimate-roleplay/images/c/cb/LCPD-GTA4-logo.png"
}
}
}
]
}
200 A successful call with Dispatch not active
{
"success": true,
"message": "No active dispatcher.",
"data": []
}
Still have questions?
Still have questions? Talk to support.