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

# PostsById: Discourse Post by ID

`read only` `REST`

- Catalogue : `Discourse`
- Schéma : `Posts`
- Label: Post by ID

Get a single post

Permet uniquement de récupérer des données.

## Résumé

Get a single post

## Source de l'API

- Point de terminaison : `/posts/{id}.json`
- Opération : `get /posts/{id}.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.

## Paramètres

| Name | Type de données | Required | Default | Documentation |
|---|---|:---:|---|---|
| `id` | `` | [x] |  |  |

## Colonnes de table

Les colonnes de la table `PostsById` 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 |
|---|---|---|:---:|---|---|
| `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. |
| `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` | `char` | Peut récupérer | [ ] | filters on the platform, writable, `can_recover` |  |
| `can_view_edit_history` | `char` | View l'historique des modifications | [ ] | filters on the platform, writable, `can_view_edit_history` |  |
| `can_wiki` | `char` | Peut-on « wikifier » ? | [ ] | filters on the platform, writable, `can_wiki` |  |
| `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` |  |
| `hidden_reason_id` | `varchar2` | itgen_dce_hidden_reason_id | [ ] | writable | The JSON text of the nested object. |
| `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` |  |
| `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` |  |
| `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. |
| `score` | `decimal` | Score | [ ] | filters on the platform, writable, `score` |  |
| `staff` | `char` | Staff | [ ] | filters on the platform, writable, `staff` |  |
| `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` |  |
| `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` |  |
| `wiki` | `char` | Wiki | [ ] | filters on the platform, writable, `wiki` |  |
| `yours` | `char` | Yours | [ ] | filters on the platform, writable, `yours` |  |


## 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-D249"></a><a id="DCE-27.0-D250"></a><a id="DCE-27.0-D251"></a><a id="DCE-27.0-D252"></a><a id="DCE-27.0-D253"></a><a id="DCE-27.0-D254"></a><a id="DCE-27.0-D255"></a><a id="DCE-27.0-D256"></a><a id="DCE-27.0-D257"></a><a id="DCE-27.0-D258"></a><a id="DCE-27.0-D259"></a><a id="DCE-27.0-D260"></a><a id="DCE-27.0-D261"></a><a id="DCE-27.0-D262"></a><a id="DCE-27.0-D263"></a>

- `-` `avg_time`
- `-` `hidden_reason_id`
- `~` `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`
- `-` `primary_group_flair_url`
- `~` `quote_count` (`database_data_type`: `decimal` &rarr; `int64`)
- `~` `quote_count` (`dotnet_data_type`: `decimal` &rarr; `int64`)

<details>
<summary>

25 modifications supplémentaires

</summary>

<a id="DCE-27.0-D264"></a><a id="DCE-27.0-D265"></a><a id="DCE-27.0-D266"></a><a id="DCE-27.0-D267"></a><a id="DCE-27.0-D268"></a><a id="DCE-27.0-D269"></a><a id="DCE-27.0-D270"></a><a id="DCE-27.0-D271"></a><a id="DCE-27.0-D272"></a><a id="DCE-27.0-D273"></a><a id="DCE-27.0-D274"></a><a id="DCE-27.0-D275"></a><a id="DCE-27.0-D1492"></a><a id="DCE-27.0-D1493"></a><a id="DCE-27.0-D1494"></a><a id="DCE-27.0-D1495"></a><a id="DCE-27.0-D1496"></a><a id="DCE-27.0-D1497"></a><a id="DCE-27.0-D1498"></a><a id="DCE-27.0-D1499"></a><a id="DCE-27.0-D1500"></a><a id="DCE-27.0-D1501"></a><a id="DCE-27.0-D1502"></a><a id="DCE-27.0-D1503"></a><a id="DCE-27.0-D1504"></a>

- `~` `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`)
- `~` `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`)
- `+` `bookmarked` (`char`)
- `+` `can_see_hidden_post` (`char`)
- `+` `flair_bg_color` (`varchar2`)
- `+` `flair_color` (`varchar2`)
- `+` `flair_group_id` (`int64`)
- `+` `flair_name` (`varchar2`)
- `+` `flair_url` (`varchar2`)
- `+` `post_url` (`varchar2`)
- `+` `posts_count` (`int64`)
- `+` `readers_count` (`int64`)
- `+` `reviewable_id` (`int64`)
- `+` `reviewable_score_count` (`int64`)
- `+` `reviewable_score_pending_count` (`int64`)

</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)
