Menzioni
WARNING
L'endpoint delle menzioni dipende dai permessi del gruppo e se l'utente che stai usando è un.
Elenca
Permesso richiesto: ticket.agent o ticket.customer
Richiesta GET inviata: /api/v1/mentions
Details
json
// HTTP-Code 200 OK
{
"mentions": [
{
"id": 2,
"mentionable_type": "Ticket",
"mentionable_id": 1,
"user_id": 3,
"updated_by_id": 3,
"created_by_id": 3,
"created_at": "2021-03-16T08:51:08.985Z",
"updated_at": "2021-03-16T08:51:08.985Z"
},
{
"id": 3,
"mentionable_type": "Ticket",
"mentionable_id": 1,
"user_id": 4,
"updated_by_id": 4,
"created_by_id": 4,
"created_at": "2021-03-16T08:51:08.986Z",
"updated_at": "2021-03-16T08:51:08.986Z"
}
]
}Crea
Permesso richiesto: ticket.agent
Richiesta POST inviata: /api/v1/mentions
Details
json
{
"mentionable_type": "Ticket",
"mentionable_id": 12
}La menzione verrà creata per l'utente della sessione corrente.
TIP
Se vuoi menzionare/iscrivere altri utenti, puoi farlo inviando un'intestazione From aggiuntiva.
Elimina
Permesso richiesto: ticket.agent
Richiesta DELETE inviata: /api/v1/mentions/{id}
Details
json
// HTTP-Code 200 OK
{
"id": 2,
"mentionable_type": "Ticket",
"mentionable_id": 1,
"user_id": 3,
"updated_by_id": 3,
"created_by_id": 3,
"created_at": "2021-03-16T08:51:08.985Z",
"updated_at": "2021-03-16T08:51:08.985Z"
}