Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Methode zum Abrufen aller nicht archivierten Alarmierungen

UI Expand
titlealarms

URL: https://divera247.com/api/v2/alarms
Methode

Status
colourBlue
titleGET

Benötigte Parameter:

  • Accesskey

Für den API Aufruf wird der Accesskey mit dem Paramter "accesskey=IHR-ACCESSKEY" angehangen.



Methode zum Erstellen einer neuen Alarmierung

UI Expand
titleset-statusalarms

URL: https://divera247.com/api/v2/alarms
Methode

Status
colourGreen
titlePOST

Benötigte Parameter:

  • Accesskey
  • Fahrzeug-ID

Für den API Aufruf wird der Accesskey mit dem Paramter "accesskey=IHR-ACCESSKEY" angehangen

Aufbau

Codeblock
languagejs
{
  "Alarm": {
    "foreign_id": Einsatznummer,
    "alarmcode_id": ID einer Alarmvorlage (Optional),
    "priority": Sonderrechte (true/false),
    "title": Stichwort,
    "text": Meldung,
    "address": Adresse,
    "lat": Breitengrad,
    "lng": Längengrad,
    "report": Bericht,
    "private_mode": privater Modus,
    "notification_type": Benachrichtigungstyp,
    "notification_filter_vehicle": Alarmfilter - Fahrzeugbesatzung (true/false),
    "notification_filter_status": Alarmfilter - Status (true/false),
    "notification_filter_access": Alarmfilter - Dienstplan (true/false),
    "send_push": Pushbenachrichtigung senden (true/false),
    "send_sms":  SMS senden (true/false),
    "send_call":  TTS Anruf senden (true/false),
    "send_mail":  Mail senden (true/false),
    "send_pager":  Pager senden (true/false),
    "response_time": 0,
    "closed": Einsatz geschlossen? (true/false),
    "ts_close": Zeitstempel für geschlossen (UNIX Zeit),
    "ts_publish": Zeitstempel der Veröffentlichung (UNIX Zeit),
    "notification_filter_status_access": true,
    "uploads": Anhang als BASE64 String (Optional),
    "clusters": {
      "123": {
        "notification_type": 2
      },
      "456": {
        "notification_type": 3
      },
      "789": {
        "notification_type": 4
      }
    },
    "group": [
      1,
      2,
      3,
      4
    ],
    "user_cluster_relation": [
      1,
      2,
      3,
      4
    ],
    "vehicle": [
      1,
      2,
      3,
      4
    ],
    "status": [
      0
    ]
  },
  "instructions": {
    "cluster": {
      "mapping": "id"
    },
    "group": {
      "mapping": "id"
    },
    "user_cluster_relation": {
      "mapping": "id"
    },
    "vehicle": {
      "mapping": "id"
    }
  }
}

Beispiel

Codeblock
languagejs
{
  "Alarm": {
    "foreign_id": "2019-1023",
    "alarmcode_id": 123456789,
    "priority": true,
    "title": "FEUER3",
    "text": "Unklare Rauchentwicklung im Hafen",
    "address": "Hauptstraße 247, 12345 Musterstadt",
    "lat": 0,
    "lng": 0,
    "report": "2 Einsatztabschnitte gebildet, 3 C-Rohre im Einsatz",
    "private_mode": true,
    "notification_type": 0,
    "notification_filter_vehicle": true,
    "notification_filter_status": true,
    "notification_filter_access": true,
    "send_push": true,
    "send_sms": true,
    "send_call": true,
    "send_mail": true,
    "send_pager": true,
    "response_time": 0,
    "closed": true,
    "ts_close": 0,
    "ts_publish": 0,
    "notification_filter_status_access": true,
    "long": 0,
    "type": "string",
    "uploads": "Binary",
    "clusters": {
      "123": {
        "notification_type": 2
      },
      "456": {
        "notification_type": 3
      },
      "789": {
        "notification_type": 4
      }
    },
    "group": [
      1,
      2,
      3,
      4
    ],
    "user_cluster_relation": [
      1,
      2,
      3,
      4
    ],
    "vehicle": [
      1,
      2,
      3,
      4
    ],
    "status": [
      0
    ]
  },
  "instructions": {
    "cluster": {
      "mapping": "id"
    },
    "group": {
      "mapping": "id"
    },
    "user_cluster_relation": {
      "mapping": "id"
    },
    "vehicle": {
      "mapping": "id"
    }
  }
}





Verwandte Artikel

Inhalt nach Stichwort
showLabelsfalse
max5
spacesFAQ
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("/api/v2/alarm","apiv2","api","api-schnittstelle","apiv2-alarm") and type = "page" and space = "FAQ"
labelsAPI api-schnittstelle APIv2 APIv2-alarm /api/v2/alarm


Seiteneigenschaften
hiddentrue


Verwandte Vorgänge