Online-Benachrichtigung
INFO
Die Verfügbarkeit von Benachrichtigungen hängt stark von der Berechtigung des Benutzers und den gewählten Benachrichtigungseinstellungen ab.
Bitte beachten Sie, dass die besten Ergebnisse immer mit Agenten erzielt werden.
Auflisten
Erforderliche Erlaubnis: any
GET
-Anfrage gesendet: /api/v1/online_notifications?expand=true
TIP
Verwenden Sie den Erweiterungs-Parameter, um die betroffenen Objekte zu ermitteln. Ansonsten müssen Sie herausfinden, welche ID für welchen Objekttyp steht.
Details
// HTTP-Code 200 OK
[
{
"id": 4,
"o_id": 6,
"object_lookup_id": 2,
"type_lookup_id": 1,
"user_id": 3,
"seen": false,
"updated_by_id": 8,
"created_by_id": 8,
"created_at": "2021-11-09T13:15:42.628Z",
"updated_at": "2021-11-09T13:15:42.637Z",
"user": "lauren@fastlane.inc",
"object": "Ticket",
"type": "create",
"created_by": "ethan@fastlane.inc",
"updated_by": "ethan@fastlane.inc"
},
{
"id": 3,
"o_id": 8,
"object_lookup_id": 2,
"type_lookup_id": 2,
"user_id": 3,
"seen": false,
"updated_by_id": 4,
"created_by_id": 4,
"created_at": "2021-11-09T13:10:42.628Z",
"updated_at": "2021-11-09T13:15:42.635Z",
"user": "lauren@fastlane.inc",
"object": "Ticket",
"type": "update",
"created_by": "hannah@fastlane.inc",
"updated_by": "hannah@fastlane.inc"
},
{
"id": 2,
"o_id": 3,
"object_lookup_id": 2,
"type_lookup_id": 1,
"user_id": 3,
"seen": true,
"updated_by_id": 6,
"created_by_id": 6,
"created_at": "2021-11-09T12:45:42.625Z",
"updated_at": "2021-11-09T13:15:42.632Z",
"user": "lauren@fastlane.inc",
"object": "Ticket",
"type": "create",
"created_by": "anna@example.com",
"updated_by": "anna@example.com"
},
{
"id": 1,
"o_id": 2,
"object_lookup_id": 2,
"type_lookup_id": 1,
"user_id": 3,
"seen": true,
"updated_by_id": 5,
"created_by_id": 5,
"created_at": "2021-11-09T11:45:42.624Z",
"updated_at": "2021-11-09T13:15:42.629Z",
"user": "lauren@fastlane.inc",
"object": "Ticket",
"type": "create",
"created_by": "emily@fastlane.inc",
"updated_by": "emily@fastlane.inc"
}
]
Anzeigen
Erforderliche Erlaubnis: any
GET
-Anfrage gesendet: /api/v1/online_notifications/{id}
Details
// HTTP-Code 200 OK
{
"id": 4,
"o_id": 6,
"object_lookup_id": 2,
"type_lookup_id": 1,
"user_id": 3,
"seen": false,
"updated_by_id": 8,
"created_by_id": 8,
"created_at": "2021-11-09T13:15:42.628Z",
"updated_at": "2021-11-09T13:15:42.637Z"
}
Aktualisierung
Erforderliche Erlaubnis: any
PUT
-Anfrage gesendet: /api/v1/online_notifications/{id}
Details
{
"seen": true
}
Löschen
Erforderliche Erlaubnis: any
DELETE
-Anfrage gesendet: /api/v1/online_notifications/{id}
Details
// HTTP-Code 200 OK
{}
Alle als gelesen markieren
Erforderliche Erlaubnis: any
POST
-Anfrage gesendet: /api/v1/online_notifications/mark_all_as_read
Details
// HTTP-Code 200 OK
{}