# Não é possível adicionar Whisper Post Usando API

**URL:** <https://meta.discourse.org/t/not-able-to-add-whisper-post-using-api/161145>\
**Category:** Development\
**Tags:** rest-api, whispers\
**Created:** [17 Agosto , 2020 14:00 UTC](https://meta.discourse.org/t/not-able-to-add-whisper-post-using-api/161145 "2020-08-17T14:00:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [18 Agosto , 2020 15:41 UTC](https://meta.discourse.org/t/not-able-to-add-whisper-post-using-api/161145/4 "2020-08-18T15:41:54Z")

</div>

> [@Minhaj](#):
>
> Em vez disso, vejo `post_type=4` em todos os sussurros, ao invés de `post_type=1`. Isso significa algo ou não?

Sim, isso é algo bom. `post_type=4` é um post de sussurro, o que significa que foi criado com sucesso. Se retornar `post_type=1`, então não é um sussurro, mas apenas um post comum.

> <https://github.com/discourse/discourse/blob/main/app/models/post.rb#L145-L150>

A interface para criar posts não permite que você passe um `post_type`, mas exige que você especifique `whisper=true`.

---

_[View the full topic](https://meta.discourse.org/t/not-able-to-add-whisper-post-using-api/161145)._
