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

# Menzioni

::: 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.
:::

## Elenca

Required permission: `ticket.agent` and at least `read` access to the group
of the ticket, `full` access also qualifies

Richiesta `GET` inviata: `/api/v1/mentions`

::: details

```json
// 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"
    }
  ]
}

```

:::

## Crea

Required permission: `ticket.agent` and at least `read` access to the group
of the ticket, `full` access also qualifies

Richiesta `POST` inviata: `/api/v1/mentions`

:::: details

::: tabs key:reqres

\=== Richiesta

```json
{
  "mentionable_type": "Ticket",
  "mentionable_id": 12
}

```

\=== Risposta

```json
// HTTP-Code 201 Created

true

```

:::
::::

La menzione verrà creata per l'utente della sessione corrente.

::: tip
Se vuoi menzionare/iscrivere altri utenti, puoi farlo inviando
un'intestazione `From` aggiuntiva.
:::

## Elimina

Permesso richiesto: `ticket.agent`

Richiesta `DELETE` inviata: `/api/v1/mentions/{id}`

::: details

```json
// 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"
}

```

:::
