# Como fazer upload de arquivos através da API?

**URL:** <https://meta.discourse.org/t/how-to-upload-files-through-the-api/204310>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [23 Setembro , 2021 13:36 UTC](https://meta.discourse.org/t/how-to-upload-files-through-the-api/204310 "2021-09-23T13:36:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JQ331](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JQ331](https://meta.discourse.org/u/JQ331)\
**Post date:** [27 Setembro , 2021 16:01 UTC](https://meta.discourse.org/t/how-to-upload-files-through-the-api/204310/3 "2021-09-27T16:01:19Z")

</div>

Pelo que posso ver, esta é a única resposta:  
`Error: Request failed with status code 422`

E não vejo nada nos logs.

---

_[View the full topic](https://meta.discourse.org/t/how-to-upload-files-through-the-api/204310)._
