Notifica online
INFO
La disponibilità della notifica dipende fortemente dai permessi dell'utente e dalle notifiche scelte.
Elenca
Permesso richiesto: any
Richiesta GET inviata: /api/v1/online_notifications?expand=true
TIP
Usa la richiesta expand per conoscere gli oggetti interessati. Altrimenti dovrai scoprire cosa.
Details
json
// 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"
}
]Mostra
Permesso richiesto: any
Richiesta GET inviata: /api/v1/online_notifications/{id}
Details
json
// 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"
}Aggiornamento
Permesso richiesto: any
Richiesta PUT inviata: /api/v1/online_notifications/{id}
Details
json
{
"seen": true
}Elimina
Permesso richiesto: any
Richiesta DELETE inviata: /api/v1/online_notifications/{id}
Details
json
// HTTP-Code 200 OK
{}Segna tutto come letto
Permesso richiesto: any
Richiesta POST inviata: /api/v1/online_notifications/mark_all_as_read
Details
json
// HTTP-Code 200 OK
{}