---
url: https://next.zammad.org/it/reference/rest-api/priorities.md
---

# Priorità

## Elenca

Permesso richiesto: `admin.object` **o** `ticket.agent` **o**
`ticket.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` **o**
`ticket.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

::: tabs key:reqres

\=== Richiesta

```json
{
  "name": "4 disaster",
  "default_create": false,
  "ui_icon": "important",
  "ui_color": "high-priority",
  "note": "Added via API for disasterious situations."
}

```

\=== Risposta

```json
// HTTP-Code 201 Created

{
  "id": 4,
  "name": "4 disaster",
  "default_create": false,
  "ui_icon": "important",
  "ui_color": "high-priority",
  "note": "Added via API for disasterious situations.",
  "active": true,
  "updated_by_id": 3,
  "created_by_id": 3,
  "created_at": "2021-11-08T15:31:57.704Z",
  "updated_at": "2021-11-08T15:31:57.704Z"
}

```

:::
::::

## Aggiornamento

Permesso richiesto: `admin.object`

Richiesta `PUT` inviata: `/api/v1/ticket_priorities/{id}`

:::: details

::: tabs key:reqres

\=== Richiesta

```json
{
  "ui_icon": "",
  "ui_color": "",
  "note": "Adjusted via API - not so important"
}

```

\=== Risposta

```json
// HTTP-Code 200 OK

{
  "id": 3,
  "ui_icon": "",
  "ui_color": "",
  "note": "Adjusted via API - not so important",
  "updated_by_id": 3,
  "name": "3 high",
  "default_create": false,
  "active": true,
  "created_by_id": 1,
  "created_at": "2021-11-03T11:51:13.579Z",
  "updated_at": "2021-11-08T15:33:12.181Z"
}

```

:::
::::

## 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

{}

```

:::
