Skip to content

Tags

Ticket-Bezug

Auflisten

Erforderliche Berechtigung: ticket.agent oder admin.tag

GET-Anfrage gesendet: /api/v1/tags?object=Ticket&o_id={ticket id}

Show response
json
// HTTP-Code 200 OK

{
  "tags": [
    "order",
    "complaint"
  ]
}

Hinzufügen

Erforderliche Berechtigung: ticket.agent oder admin.tag

POST-Anfrage gesendet: /api/v1/tags/add

Show request/response
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

Show request/response
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

Show response
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

Show request/response
json
{
  "name": "tag 5"
}

Verwaltung - Umbenennen

Erforderliche Berechtigung: admin.tag

PUT-Anfrage gesendet: /api/v1/tag_list/{tag id}

Show request/response
json
{
  "name": "order"
}

Verwaltung - Löschen

Erforderliche Berechtigung: admin.tag

DELETE-Anfrage gesendet: /api/v1/tag_list/{tag id}

Show response

Response:

json
// HTTP-Code 200 OK

{}