# Upload avatar image with API

**URL:** https://meta.discourse.org/t/upload-avatar-image-with-api/55253
**Category:** Development
**Tags:** rest-api
**Created:** [January 6, 2017, 1:31am UTC](https://meta.discourse.org/t/upload-avatar-image-with-api/55253 "2017-01-06T01:31:43Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [January 17, 2017, 9:12pm UTC](https://meta.discourse.org/t/upload-avatar-image-with-api/55253/7 "2017-01-17T21:12:21Z")

</div>

Okay I just verified that I got this to work. You just need to add the `synchronous: true` value to get the id.

 ![](https://global.discourse-cdn.com/meta/original/3X/9/6/967594b1071c072f553730cb020327557062aba2.png)

now that we have the id: `17` we can then make one more request:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/6/b63fe32b3944f2fb8b020a65bd151924285669e1.png)

---

_[View the full topic](https://meta.discourse.org/t/upload-avatar-image-with-api/55253)._
