Помињања
WARNING
Mentioning other users requires the ticket.agent permission and at least read access to the group of the ticket, full access also qualifies. Otherwise the request fails with HTTP status 403.
Преглед листе
Required permission: ticket.agent and at least read access to the group of the ticket, full access also qualifies
GET-захтев послат: /api/v1/mentions
Details
// 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"
}
]
}Креирај
Required permission: ticket.agent and at least read access to the group of the ticket, full access also qualifies
POST-захтев послат: /api/v1/mentions
Details
{
"mentionable_type": "Ticket",
"mentionable_id": 12
}Помињање ће бити креирано за корисника тренутне сесије.
TIP
Ако желите да поменете/прикључите друге кориснике, можете то учинити слањем додатног From-заглавља у захтеву. Можете навести ID корисника или адресу имејла корисника као вредност.
Обриши
Потребна дозвола: ticket.agent
DELETE-захтев послат: /api/v1/mentions/{id}
Details
// 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"
}