# Messages privés et publics dans un seul sujet

**URL:** https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375
**Category:** Feature
**Created:** [Août 19, 2020, 1:19 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375 "2020-08-19T13:19:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sdiscourse](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sdiscourse](https://meta.discourse.org/u/sdiscourse)
#### Post date: [Août 19, 2020, 1:19 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375/1 "2020-08-19T13:19:48Z")

</div>

J’ai 10 messages dans mon sujet. Comment puis-je rendre 2 de ces 10 messages privés via l’API, de sorte qu’ils ne soient visibles que par certains groupes ou personnes ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Août 19, 2020, 1:30 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375/2 "2020-08-19T13:30:00Z")

</div>

Les publications peuvent être des messages confidentiels et sont privées pour le personnel.

---

<div class="post-metadata">

### Author: ![sdiscourse](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sdiscourse](https://meta.discourse.org/u/sdiscourse)
#### Post date: [Août 19, 2020, 1:49 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375/3 "2020-08-19T13:49:46Z")

</div>

Merci, Robert !  
Je vois que des chuchotements peuvent être créés via l’interface Discourse. Comment créer un chuchotement en utilisant l’API Discourse ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Août 19, 2020, 1:51 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375/4 "2020-08-19T13:51:27Z")

</div>

Cela pourrait aider, cela a été évoqué récemment :

> [@Not able to add Whisper Post Using API](https://meta.discourse.org/t/not-able-to-add-whisper-post-using-api/161145?u=merefield):
>
> I am unable to add whisper post Using the API. I am passing Whisper field to true in the given go struct. type Post struct { TopicID int `json:"topic_id"` Raw string `json:"raw"` CreatedAt time.Time `json:"created_at"` PostType int `json:"post_type"` Whisper bool `json:"whisper"` } Both, setting whisper to true or post\_type to 4 doesn’t seem to work for me. Post is being added but it is not a whisper. However I am able to add whisper through the UI which c…

---

<div class="post-metadata">

### Author: ![sdiscourse](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sdiscourse](https://meta.discourse.org/u/sdiscourse)
#### Post date: [Août 19, 2020, 1:55 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375/5 "2020-08-19T13:55:20Z")

</div>

Merci Robert ! C’est très utile !

---

<div class="post-metadata">

### Author: ![sdiscourse](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sdiscourse](https://meta.discourse.org/u/sdiscourse)
#### Post date: [Août 27, 2020, 5:39 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375/6 "2020-08-27T17:39:36Z")

</div>

Une dernière question de suivi.

Pouvons-nous ajouter un groupe d’individus ayant accès au message confidentiel ?

De plus, je pense que seul le personnel peut contrôler le message confidentiel. Cela signifie-t-il que l’utilisateur doit être modérateur ? Ou peut-il être membre du personnel sans être modérateur ? Et s’il doit être membre du personnel, qu’est-ce que cela signifie ? De quoi a-t-il exactement la capacité d’agir ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Août 27, 2020, 9:39 UTC](https://meta.discourse.org/t/private-posts-and-public-in-a-single-topic/161375/7 "2020-08-27T21:39:02Z")

</div>

Non, vous ne le pouvez pas. Ils sont visibles uniquement par le personnel.

Si vous souhaitez une fonctionnalité similaire pour un groupe, vous devrez créer un plugin.
