---
title: "Categories (Discourse)"
description: "Categories"
language: it
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/it/datamodels/discourse/Discourse.Categories.Categories
original: https://documentation.invantive.eu/en/datamodels/discourse/Discourse.Categories.Categories
updated: 2026-11-16T20:47:00Z
license: https://documentation.invantive.eu/it/
---

# Categories: Discourse Categories

`read only` `REST`

- Catalogo: `Discourse`
- Schema: `Categories`
- Label: Categories

Get a list of categories The Categories endpoint returns a list of all the categories for your discourse site that you have access to.

È possibile solo recuperare i dati.

## Riepilogo

The Categories endpoint returns a list of all the categories for your discourse site that you have access to.

## Codice sorgente dell'API

- Punto finale: `/categories.json`
- Operazione: `get /categories.json`

## Caratteristiche prestazionali

| Characteristic | Value |
|---|---:|
| Latenza media di accesso (ms) | 243 |
| Scrittura di righe al minuto | 219 |

Il risultato può essere memorizzato nella memoria cache sul client.

## Colonne della tabella

Di seguito sono riportate le colonne della tabella `Categories`. Ogni colonna ha un tipo di dati SQL. Un nuovo valore non nullo deve essere fornito per ogni colonna richiesta in ogni momento durante l'inserimento e l'aggiornamento.

| Name | Tipo di dati | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `background_url` | `varchar2` | URL di sfondo | [ ] | writable, `background_url` |  |
| `can_create_category` | `char` | Può creare una categoria | [ ] | filters on the platform, writable, `::ancestor.can_create_category` |  |
| `can_create_topic` | `char` | Può creare un argomento | [ ] | filters on the platform, writable, `::ancestor.can_create_topic` |  |
| `can_edit` | `char` | È possibile modificare | [ ] | writable, `can_edit` |  |
| `can_vote` | `char` | Può votare | [ ] | filters on the platform, writable, `can_vote` |  |
| `color` | `varchar2` | Colour | [ ] | writable, `color` |  |
| `default_list_filter` | `varchar2` | Filtro predefinito dell'elenco | [ ] | filters on the platform, writable, `default_list_filter` |  |
| `default_top_period` | `varchar2` | Periodo predefinito principale | [ ] | filters on the platform, writable, `default_top_period` |  |
| `default_view` | `varchar2` | Visualizzazione predefinita | [ ] | filters on the platform, writable, `default_view` |  |
| `description` | `varchar2` | Description | [ ] | writable, `description` |  |
| `description_excerpt` | `varchar2` | Estratto della descrizione | [ ] | writable, `description_excerpt` |  |
| `description_text` | `varchar2` | Testo della descrizione | [ ] | writable, `description_text` |  |
| `draft` | `char` | Draft | [ ] | filters on the platform, writable, `::ancestor.draft` |  |
| `draft_key` | `varchar2` | Chiave di Bozza | [ ] | filters on the platform, writable, `::ancestor.draft_key` |  |
| `draft_sequence` | `int64` | Sequenza di bozza | [ ] | filters on the platform, writable, `::ancestor.draft_sequence` |  |
| `has_children` | `char` | Ha figli | [ ] | writable, `has_children` |  |
| `id` | `int64` | ID | [ ] | writable, `id` |  |
| `is_uncategorized` | `char` | È "Senza categoria" | [ ] | filters on the platform, writable, `is_uncategorized` |  |
| `logo_url` | `varchar2` | URL del logo | [ ] | writable, `logo_url` |  |
| `minimum_required_tags` | `int32` | Tag minimi richiesti | [ ] | filters on the platform, writable, `minimum_required_tags` |  |
| `name` | `varchar2` | Name | [ ] | writable, `name` |  |
| `navigate_to_first_post_after_read` | `char` | Vai al primo post dopo la lettura | [ ] | filters on the platform, writable, `navigate_to_first_post_after_read` |  |
| `notification_level` | `varchar2` | Livello di notifica | [ ] | writable, `notification_level` |  |
| `num_featured_topics` | `int32` | Num Argomenti in primo piano | [ ] | filters on the platform, writable, `num_featured_topics` |  |
| `permission` | `int64` | Permission | [ ] | writable, `permission` |  |
| `position` | `int64` | Position | [ ] | writable, `position` |  |
| `post_count` | `int64` | #Posts | [ ] | writable, `post_count` |  |
| `read_restricted` | `char` | Leggi con restrizioni | [ ] | writable, `read_restricted` |  |
| `show_subcategory_list` | `char` | Mostra l'elenco delle sottocategorie | [ ] | filters on the platform, writable, `show_subcategory_list` |  |
| `slug` | `varchar2` | Slug | [ ] | writable, `slug` |  |
| `sort_order` | `varchar2` | Ordinamento | [ ] | filters on the platform, writable, `sort_order` |  |
| `subcategory_list_style` | `varchar2` | Stile dell'elenco delle sottocategorie | [ ] | filters on the platform, writable, `subcategory_list_style` |  |
| `text_color` | `varchar2` | Colore del testo | [ ] | writable, `text_color` |  |
| `topic_count` | `int64` | #Topics | [ ] | writable, `topic_count` |  |
| `topic_template` | `varchar2` | Modello di argomento | [ ] | writable, `topic_template` |  |
| `topic_url` | `varchar2` | URL dell'argomento | [ ] | writable, `topic_url` |  |
| `topics_all_time` | `int64` | Argomenti di tutti i tempi | [ ] | writable, `topics_all_time` |  |
| `topics_day` | `int64` | Giornata tematica | [ ] | writable, `topics_day` |  |
| `topics_month` | `int64` | Mese a tema | [ ] | writable, `topics_month` |  |
| `topics_week` | `int64` | Settimana a tema | [ ] | writable, `topics_week` |  |
| `topics_year` | `int64` | Argomenti Anno | [ ] | writable, `topics_year` |  |
| `uploaded_logo_height` | `int32` | Altezza del logo caricato | [ ] | filters on the platform, writable, `uploaded_logo.height` |  |
| `uploaded_logo_id` | `int32` | ID del logo caricato | [ ] | filters on the platform, writable, `uploaded_logo.id` |  |
| `uploaded_logo_url` | `varchar2` | URL del logo caricato | [ ] | filters on the platform, writable, `uploaded_logo.url` |  |
| `uploaded_logo_width` | `int32` | Larghezza del logo caricato | [ ] | filters on the platform, writable, `uploaded_logo.width` |  |

## Riferito da

- [Posts](Discourse.Posts.Posts) `category_id` (Candidate)
- [Posts_Latest_postsActions_summary](Discourse.Posts.Posts_Latest_postsActions_summary) `category_id` (Candidate)
- [Top_Topic_listTopics](Discourse.Topics.Top_Topic_listTopics) `category_id` (Candidate)
- [Top_Topic_listTopicsPosters](Discourse.Topics.Top_Topic_listTopicsPosters) `category_id` (Candidate)


## Note di rilascio

Cosa è cambiato, versione per versione, nelle tabelle, nelle colonne, negli attributi e nelle funzionalità del driver:

- [Discourse](/it/release-notes/drivers?driver=discourse)

### Modifiche apportate a questa tabella, da 26.0 a 27.0

<div class="rn-item" id="DCE-27.0-D1074">

##### Discourse.Categories.Categories: modifiche al tipo

Il tipo di Discourse.Categories.Categories cambia da tabella a tabella.

<div class="rn-action">

**Cosa fare**

Verificare le istruzioni, le Views e gli script che la utilizzano prima dell’aggiornamento.

</div>

<div class="rn-chips">

- **può interrompere un'istruzione**
- `table` &rarr; `tablefunction`
- importanza 3

</div>

</div>

<a id="DCE-27.0-D106"></a><a id="DCE-27.0-D107"></a><a id="DCE-27.0-D108"></a><a id="DCE-27.0-D109"></a><a id="DCE-27.0-D110"></a><a id="DCE-27.0-D111"></a><a id="DCE-27.0-D112"></a><a id="DCE-27.0-D113"></a><a id="DCE-27.0-D114"></a><a id="DCE-27.0-D115"></a><a id="DCE-27.0-D116"></a><a id="DCE-27.0-D1420"></a><a id="DCE-27.0-D1421"></a><a id="DCE-27.0-D1422"></a>

- `-` `background_url`
- `-` `draft`
- `-` `draft_key`
- `-` `draft_sequence`
- `-` `logo_url`
- `~` `minimum_required_tags` (`database_data_type`: `int32` &rarr; `int64`)
- `~` `minimum_required_tags` (`dotnet_data_type`: `int32` &rarr; `int64`)
- `~` `notification_level` (`database_data_type`: `varchar2` &rarr; `int64`)
- `~` `notification_level` (`dotnet_data_type`: `string` &rarr; `int64`)
- `~` `num_featured_topics` (`database_data_type`: `int32` &rarr; `int64`)
- `~` `num_featured_topics` (`dotnet_data_type`: `int32` &rarr; `int64`)
- `+` `emoji` (`varchar2`)
- `+` `icon` (`varchar2`)
- `+` `sort_ascending` (`varchar2`)

<details>
<summary>

8 ulteriori modifiche

</summary>

<div class="rn-item" id="DCE-27.0-D2375">

##### Il parametro include_subcategories è stato aggiunto a Discourse.Categories.Categories

Facoltativo.

<div class="rn-chips">

- importanza 2

</div>

</div>

<a id="DCE-27.0-D1423"></a><a id="DCE-27.0-D1424"></a><a id="DCE-27.0-D1425"></a><a id="DCE-27.0-D1426"></a><a id="DCE-27.0-D1427"></a><a id="DCE-27.0-D1428"></a><a id="DCE-27.0-D1429"></a>

- `+` `style_type` (`varchar2`)
- `+` `subcategory_count` (`int64`)
- `+` `topic_title_placeholder` (`varchar2`)
- `+` `uploaded_background` (`varchar2`)
- `+` `uploaded_background_dark` (`varchar2`)
- `+` `uploaded_logo` (`varchar2`)
- `+` `uploaded_logo_dark` (`varchar2`)

</details>

[Tutte le sostituzioni del conducente, da 26.0 a 27.0](/it/release-notes/drivers?driver=discourse&step=26.0-to-27.0#discourse-26.0-to-27.0)
