Tags
Ticket-Bezug
Auflisten
Erforderliche Berechtigung: ticket.agent oder admin.tag
GET-Anfrage gesendet: /api/v1/tags?object=Ticket&o_id={ticket id}
Details
json
// HTTP-Code 200 OK
{
"tags": [
"order",
"complaint"
]
}Hinzufügen
Erforderliche Berechtigung: ticket.agent oder admin.tag
POST-Anfrage gesendet: /api/v1/tags/add
Details
json
{
"item": "{tag name}",
"object": "Ticket",
"o_id": "{ticket id}"
}INFO
Dadurch wird das Tag erstellt, wenn es nicht existiert und der Benutzer die Erlaubnis dazu hat.
Entfernen
Erforderliche Berechtigung: ticket.agent oder admin.tag
DELETE-Anfrage gesendet: /api/v1/tags/remove
Details
json
{
"item": "{tag name}",
"object": "Ticket",
"o_id": "{ticket id}"
}Admin-Bezug
Verwaltung - Auflisten
Erforderliche Berechtigung: admin.tag
GET-Anfrage gesendet: /api/v1/tag_list
Details
json
// HTTP-Code 200 OK
[
{
"id": 1,
"name": "order",
"count": 0
},
{
"id": 2,
"name": "complaint",
"count": 0
},
{
"id": 3,
"name": "printer problem",
"count": 0
}
]Verwaltung - Erstellen
Erforderliche Berechtigung: admin.tag
POST-Anfrage gesendet: /api/v1/tag_list
Details
json
{
"name": "tag 5"
}Verwaltung - Umbenennen
Erforderliche Berechtigung: admin.tag
PUT-Anfrage gesendet: /api/v1/tag_list/{tag id}
Details
json
{
"name": "order"
}Verwaltung - Löschen
Erforderliche Berechtigung: admin.tag
DELETE-Anfrage gesendet: /api/v1/tag_list/{tag id}
Details
Response:
json
// HTTP-Code 200 OK
{}