Fetch a single incident
const url = 'https://app.bluelightmaps.com/api/incidents/1';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.bluelightmaps.com/api/incidents/1 \ --header 'Authorization: Basic <credentials>'Fetch a single incident by its database ID
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”The requested incident
object
Unique external identifier for the incident
Type of incident
Time when the incident occurred
Time when the incident was received by the system
Time when the incident was last updated
Lifecycle state. Incidents are created OPEN; status in a create body is ignored. On an update, omit it to keep the stored value, send CLOSED to close (which stands every remaining callsign down and stamps timeClosed) or OPEN to reopen (which clears timeClosed). Any other value is a 400, and assigning resources while closed is a 409.
When the incident was closed; absent (null) while it is open. Server-owned: set when status becomes CLOSED, cleared when it goes back to OPEN, and ignored if sent in a request body.
Latitude of the incident location
Longitude of the incident location
Priority of the incident
Description of the incident
Callsigns assigned to this incident. A callsign is matched against the names of the devices the caller can reach, and one callsign may map to several devices (a vehicle often carries more than one) - each of them receives the assignment / deassignment event and push. Always empty while the incident is closed.
Example
{ "status": "OPEN"}Incident not found