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

# Posts: Discourse Posts

`insert` `REST`

- Catalogue : `Discourse`
- Schéma : `Posts`
- Label: Posts

Get a list of the latest posts across topics

Permet de récupérer et de modifier des données à l'aide de `insert`.

## Résumé

Get a list of the latest posts across topics

## Source de l'API

- Point de terminaison : `/posts.json`
- Opération : `get /posts.json`

## Caractéristiques de performance

| Characteristic | Value |
|---|---:|
| Latence moyenne d'accès (ms) | 243 |
| Nombre d'enregistrements écrits par minute | 219 |

Le résultat peut être mis en cache côté client.

## Colonnes de table

Les colonnes de la table `Posts` sont présentées ci-dessous. Chaque colonne possède un type de données SQL. Une nouvelle valeur non nulle doit être fournie pour chaque colonne requise à tout moment lors de l'insertion et de la mise à jour.

| Name | Type de données | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `accepted_answer` | `char` | Réponse acceptée | [ ] | filters on the platform, writable, `accepted_answer` |  |
| `action_code` | `varchar2` | Code d'action | [ ] | filters on the platform, writable, `action_code` |  |
| `admin` | `char` | Administrator | [ ] | filters on the platform, writable, `admin` |  |
| `avatar_template` | `varchar2` | Modèle d'avatar | [ ] | filters on the platform, writable, `avatar_template` |  |
| `avg_time` | `varchar2` | itgen_dce_avg_time | [ ] | writable | The JSON text of the nested object. |
| `bookmarked` | `char` | Bookmarked | [ ] | filters on the platform, writable, `bookmarked` |  |
| `can_accept_answer` | `char` | Peut accepter la réponse | [ ] | filters on the platform, writable, `can_accept_answer` |  |
| `can_delete` | `char` | Peut être supprimé | [ ] | filters on the platform, writable, `can_delete` |  |
| `can_edit` | `char` | peut modifier | [ ] | filters on the platform, writable, `can_edit` |  |
| `can_recover` | `varchar2` | Peut récupérer | [ ] | writable | The JSON text of the nested object. |
| `can_unaccept_answer` | `char` | Peut-on rejeter une réponse ? | [ ] | filters on the platform, writable, `can_unaccept_answer` |  |
| `can_view_edit_history` | `char` | View l'historique des modifications | [ ] | filters on the platform, writable, `can_view_edit_history` |  |
| `can_vote` | `char` | Peut voter | [ ] | filters on the platform, writable, `can_vote` |  |
| `can_wiki` | `char` | Peut-on « wikifier » ? | [ ] | filters on the platform, writable, `can_wiki` |  |
| `category_id` | `decimal` | ID de catégorie | [ ] | filters on the platform, writable, `category_id` |  |
| `cooked` | `varchar2` | Cooked | [ ] | filters on the platform, writable, `cooked` |  |
| `created_at` | `varchar2` | Créé le | [ ] | filters on the platform, writable, `created_at` |  |
| `deleted_at` | `varchar2` | Supprimé le | [ ] | writable | The JSON text of the nested object. |
| `display_username` | `varchar2` | Afficher le nom d'utilisateur | [ ] | filters on the platform, writable, `display_username` |  |
| `edit_reason` | `varchar2` | Motif de la modification | [ ] | writable | The JSON text of the nested object. |
| `hidden` | `char` | Hidden | [ ] | filters on the platform, writable, `hidden` |  |
| `id` | `decimal` | ID | [ ] | filters on the platform, writable, `id` |  |
| `incoming_link_count` | `decimal` | #Liens entrants | [ ] | filters on the platform, writable, `incoming_link_count` |  |
| `moderator` | `char` | Moderator | [ ] | filters on the platform, writable, `moderator` |  |
| `name` | `varchar2` | Name | [ ] | filters on the platform, writable, `name` |  |
| `notice_type` | `varchar2` | Type d'avis | [ ] | filters on the platform, writable, `notice.type` |  |
| `post_number` | `decimal` | Numéro de message | [ ] | filters on the platform, writable, `post_number` |  |
| `post_type` | `decimal` | Type de poste | [ ] | filters on the platform, writable, `post_type` |  |
| `primary_group_flair_bg_color` | `varchar2` | itgen_dce_primary_group_flair_bg_color | [ ] | writable | The JSON text of the nested object. |
| `primary_group_flair_color` | `varchar2` | itgen_dce_primary_group_flair_color | [ ] | writable | The JSON text of the nested object. |
| `primary_group_flair_url` | `varchar2` | itgen_dce_primary_group_flair_url | [ ] | writable | The JSON text of the nested object. |
| `primary_group_name` | `varchar2` | Nom du groupe principal | [ ] | writable | The JSON text of the nested object. |
| `quote_count` | `decimal` | #Quotes | [ ] | filters on the platform, writable, `quote_count` |  |
| `raw` | `varchar2` | Raw | [ ] | filters on the platform, writable, `raw` |  |
| `readers_count` | `int32` | Nombre de lecteurs | [ ] | filters on the platform, writable, `readers_count` |  |
| `reads` | `decimal` | #Reads | [ ] | filters on the platform, writable, `reads` |  |
| `reply_count` | `decimal` | #Replies | [ ] | filters on the platform, writable, `reply_count` |  |
| `reply_to_post_number` | `varchar2` | Répondre au message n° | [ ] | writable | The JSON text of the nested object. |
| `reply_to_user_avatar_template` | `varchar2` | Modèle de réponse à l'avatar d'un utilisateur | [ ] | filters on the platform, writable, `reply_to_user.avatar_template` |  |
| `reply_to_user_username` | `varchar2` | Répondre à l'utilisateur « Nom d'utilisateur » | [ ] | filters on the platform, writable, `reply_to_user.username` |  |
| `reviewable_score_count` | `int32` | Nombre de notes pouvant faire l'objet d'une révision | [ ] | filters on the platform, writable, `reviewable_score_count` |  |
| `reviewable_score_pending_count` | `int32` | Nombre de notes en attente de validation | [ ] | filters on the platform, writable, `reviewable_score_pending_count` |  |
| `score` | `decimal` | Score | [ ] | filters on the platform, writable, `score` |  |
| `staff` | `char` | Staff | [ ] | filters on the platform, writable, `staff` |  |
| `static_doc` | `char` | Documentation statique | [ ] | filters on the platform, writable, `static_doc` |  |
| `title_is_group` | `char` | Titre : Groupe | [ ] | filters on the platform, writable, `title_is_group` |  |
| `topic_html_title` | `varchar2` | Sujet - Titre HTML | [ ] | filters on the platform, writable, `topic_html_title` |  |
| `topic_id` | `decimal` | Identifiant du sujet | [ ] | filters on the platform, writable, `topic_id` |  |
| `topic_slug` | `varchar2` | Slug du sujet | [ ] | filters on the platform, writable, `topic_slug` |  |
| `topic_title` | `varchar2` | Titre du sujet | [ ] | filters on the platform, writable, `topic_title` |  |
| `trust_level` | `decimal` | Niveau de confiance | [ ] | filters on the platform, writable, `trust_level` |  |
| `updated_at` | `varchar2` | Mise à jour à | [ ] | filters on the platform, writable, `updated_at` |  |
| `user_deleted` | `char` | Utilisateur supprimé | [ ] | filters on the platform, writable, `user_deleted` |  |
| `user_id` | `decimal` | ID utilisateur | [ ] | filters on the platform, writable, `user_id` |  |
| `user_title` | `varchar2` | Titre de l'utilisateur | [ ] | writable | The JSON text of the nested object. |
| `username` | `varchar2` | Nom d'Utilisateur | [ ] | filters on the platform, writable, `username` |  |
| `version` | `decimal` | Version | [ ] | filters on the platform, writable, `version` |  |
| `via_email` | `char` | Par e-mail | [ ] | filters on the platform, writable, `via_email` |  |
| `wiki` | `char` | Wiki | [ ] | filters on the platform, writable, `wiki` |  |
| `yours` | `char` | Yours | [ ] | filters on the platform, writable, `yours` |  |

## Clés

| Key | Column | Se réfère à | Kind | Description |
|---|---|---|---|---|
| `Posts_category_id_cnd` | `category_id` | [Categories](Discourse.Categories.Categories)`.id` | Candidate | Not stated by Discourse; found on the data of the smoke forum on 2026-10-31, where every filled value is in the referenced table. |

## Référencée

- [Posts_Latest_postsActions_summary](Discourse.Posts.Posts_Latest_postsActions_summary) `id_2` (Candidate)


## Notes de Version

Quels ont été les changements apportés à chaque version au niveau des tables, des colonnes, des attributs et des fonctionnalités du chauffeur :

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

### Modifications apportées à cette table, 26.0 à 27.0

<a id="DCE-27.0-D212"></a><a id="DCE-27.0-D213"></a><a id="DCE-27.0-D214"></a><a id="DCE-27.0-D215"></a><a id="DCE-27.0-D216"></a><a id="DCE-27.0-D217"></a><a id="DCE-27.0-D218"></a><a id="DCE-27.0-D219"></a><a id="DCE-27.0-D220"></a><a id="DCE-27.0-D221"></a><a id="DCE-27.0-D222"></a><a id="DCE-27.0-D223"></a><a id="DCE-27.0-D224"></a><a id="DCE-27.0-D225"></a><a id="DCE-27.0-D226"></a>

- `-` `avg_time`
- `~` `can_recover` (`database_data_type`: `varchar2` &rarr; `char`)
- `~` `can_recover` (`dotnet_data_type`: `string` &rarr; `boolean`)
- `~` `category_id` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `category_id` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `id` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `id` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `incoming_link_count` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `incoming_link_count` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `post_number` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `post_number` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `post_type` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `post_type` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `-` `primary_group_flair_bg_color`
- `-` `primary_group_flair_color`

<details>
<summary>

42 modifications supplémentaires

</summary>

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

##### Discourse.Posts.Posts : modifications de type

Le type de « Discourse.Posts.Posts » passe de « Table » à « Tablefunction ».

<div class="rn-action">

**Que faire ?**

Vérifiez les instructions, les Views et les scripts qui l'utilisent avant la mise à niveau.

</div>

<div class="rn-chips">

- **peut interrompre une instruction**
- `table` &rarr; `tablefunction`
- importance 3

</div>

</div>

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

##### Le paramètre « before » est ajouté à Discourse.Posts.Posts

Facultatif.

<div class="rn-chips">

- importance 2

</div>

</div>

<a id="DCE-27.0-D227"></a><a id="DCE-27.0-D228"></a><a id="DCE-27.0-D229"></a><a id="DCE-27.0-D230"></a><a id="DCE-27.0-D231"></a><a id="DCE-27.0-D232"></a><a id="DCE-27.0-D233"></a><a id="DCE-27.0-D234"></a><a id="DCE-27.0-D235"></a><a id="DCE-27.0-D236"></a><a id="DCE-27.0-D237"></a><a id="DCE-27.0-D238"></a><a id="DCE-27.0-D239"></a><a id="DCE-27.0-D240"></a><a id="DCE-27.0-D241"></a><a id="DCE-27.0-D242"></a><a id="DCE-27.0-D243"></a><a id="DCE-27.0-D244"></a><a id="DCE-27.0-D245"></a><a id="DCE-27.0-D246"></a><a id="DCE-27.0-D247"></a><a id="DCE-27.0-D248"></a><a id="DCE-27.0-D1474"></a><a id="DCE-27.0-D1475"></a><a id="DCE-27.0-D1476"></a><a id="DCE-27.0-D1477"></a><a id="DCE-27.0-D1478"></a><a id="DCE-27.0-D1479"></a><a id="DCE-27.0-D1480"></a><a id="DCE-27.0-D1481"></a><a id="DCE-27.0-D1482"></a><a id="DCE-27.0-D1483"></a><a id="DCE-27.0-D1484"></a><a id="DCE-27.0-D1485"></a><a id="DCE-27.0-D1486"></a><a id="DCE-27.0-D1487"></a><a id="DCE-27.0-D1488"></a><a id="DCE-27.0-D1489"></a><a id="DCE-27.0-D1490"></a><a id="DCE-27.0-D1491"></a>

- `-` `primary_group_flair_url`
- `~` `quote_count` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `quote_count` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `readers_count` (`database_data_type`: `int32` &rarr; `int64`)
- `~` `readers_count` (`dotnet_data_type`: `int32` &rarr; `int64`)
- `~` `reads` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `reads` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `reply_count` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `reply_count` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `reviewable_score_count` (`database_data_type`: `int32` &rarr; `int64`)
- `~` `reviewable_score_count` (`dotnet_data_type`: `int32` &rarr; `int64`)
- `~` `reviewable_score_pending_count` (`database_data_type`: `int32` &rarr; `int64`)
- `~` `reviewable_score_pending_count` (`dotnet_data_type`: `int32` &rarr; `int64`)
- `-` `static_doc`
- `~` `topic_id` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `topic_id` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `trust_level` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `trust_level` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `user_id` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `user_id` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `~` `version` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `version` (`dotnet_data_type`: `decimal` &rarr; `int64`)
- `+` `archetype` (`varchar2`)
- `+` `auto_track` (`char`)
- `+` `can_see_hidden_post` (`char`)
- `+` `category` (`int32`)
- `+` `embed_url` (`varchar2`)
- `+` `excerpt` (`varchar2`)
- `+` `external_id` (`varchar2`)
- `+` `flair_bg_color` (`varchar2`)
- `+` `flair_color` (`varchar2`)
- `+` `flair_group_id` (`varchar2`)
- `+` `flair_name` (`varchar2`)
- `+` `flair_url` (`varchar2`)
- `+` `post_url` (`varchar2`)
- `+` `posts_count` (`int64`)
- `+` `reviewable_id` (`varchar2`)
- `+` `target_recipients` (`varchar2`)
- `+` `title` (`varchar2`)
- `+` `truncated` (`char`)

</details>

[Toutes les modifications apportées au chauffeur, 26.0 à 27.0](/fr/release-notes/drivers?driver=discourse&step=26.0-to-27.0#discourse-26.0-to-27.0)
