Safe Zone - Notify Safezone
Please use this (https://blkem.com/mobile_api/notify_safezone) API for notifying safezone for the request
Get parameters
Field | Value | Remarks |
---|---|---|
session_id | ​Access token ID | E.g. de25cc16eb00960f076... |
request_id | Request Id | E.g. 15 |
location_id | Optional - if you want to notify second nearest safezone | E.g. 1 |
nearest | Optional - if you want to notify all the nearest safezones | E.g. 'all' |
message_type | 'issue' or 'resolved' | Emergency message to be sent to safezone |
Success response
{
"code": 200,
"notified_to": [
{
"id": 4,
"name": "1400 W Marvin Ave Waxahachie, Texas 75165",
"address": "1400 West Marvin Avenue",
"city": "Waxahachie",
"state": "TX",
"zip": "75165",
"country": "US",
"phone": "123123123",
"lat": "32.400373281218535",
"lng": "-96.85778075523983",
"active": 1,
"category_id": 3,
"thumbnail": "",
"is_main_chapter": 0,
"category_name": "safezones",
"category_identifier": "safezones",
"category_thumbnail": "",
"distance": 0,
"formatted": "1400 West Marvin Avenue Waxahachie TX, 75165"
},
{
"id": 5,
"name": "1400 West Marvin Avenue Waxahachie, TX 75165",
"address": "1400 West Marvin Avenue",
"city": "Waxahachie",
"state": "TX",
"zip": "75165",
"country": "US",
"phone": "12313213",
"lat": "32.39999",
"lng": "-96.85786",
"active": 1,
"category_id": 3,
"thumbnail": "",
"is_main_chapter": 0,
"category_name": "safezones",
"category_identifier": "safezones",
"category_thumbnail": "",
"distance": 1,
"formatted": "1400 West Marvin Avenue Waxahachie TX, 75165"
}
],
"message": "All safezones notified"
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 404,
"message": "Location or Request not found"
}