Priorità
Elenca
Permesso richiesto: admin.object o ticket.agent oticket.customer
Richiesta GET inviata: /api/v1/ticket_priorities
Details
json
// HTTP-Code 200 OK
[
{
"id": 1,
"name": "1 low",
"default_create": false,
"ui_icon": "low-priority",
"ui_color": "low-priority",
"note": null,
"active": true,
"updated_by_id": 1,
"created_by_id": 1,
"created_at": "2021-11-03T11:51:13.559Z",
"updated_at": "2021-11-03T11:51:13.572Z"
},
{
"id": 2,
"name": "2 normal",
"default_create": true,
"ui_icon": null,
"ui_color": null,
"note": null,
"active": true,
"updated_by_id": 1,
"created_by_id": 1,
"created_at": "2021-11-03T11:51:13.570Z",
"updated_at": "2021-11-03T11:51:13.570Z"
},
{
"id": 3,
"name": "3 high",
"default_create": false,
"ui_icon": "important",
"ui_color": "high-priority",
"note": null,
"active": true,
"updated_by_id": 1,
"created_by_id": 1,
"created_at": "2021-11-03T11:51:13.579Z",
"updated_at": "2021-11-03T11:51:13.579Z"
}
]Mostra
Permesso richiesto: admin.object o ticket.agent oticket.customer
Richiesta GET inviata: /api/v1/ticket_priorities/{id}
Details
json
// HTTP-Code 200 OK
{
"id": 3,
"name": "3 high",
"default_create": false,
"ui_icon": "important",
"ui_color": "high-priority",
"note": null,
"active": true,
"updated_by_id": 1,
"created_by_id": 1,
"created_at": "2021-11-03T11:51:13.579Z",
"updated_at": "2021-11-03T11:51:13.579Z"
}Crea
Permesso richiesto: admin.object
Richiesta POST inviata: /api/v1/ticket_priorities
Details
json
{
"name": "4 disaster",
"default_create": false,
"ui_icon": "important",
"ui_color": "high-priority",
"note": "Added via API for disasterious situations."
}Aggiornamento
Permesso richiesto: admin.object
Richiesta PUT inviata: /api/v1/ticket_priorities/{id}
Details
json
{
"ui_icon": "",
"ui_color": "",
"note": "Adjusted via API - not so important"
}Elimina
Permesso richiesto: admin.object
Richiesta DELETE inviata: /api/v1/ticket_priorities/{id}
DANGER
Questa è una rimozione permanente
Tieni presente che rimuovere priorità non può essere annullato.
R
Details
Risposta:
json
// HTTP-Code 200 OK
{}