# בחירת אוואטר משתמש דרך API כבר לא עובד

**URL:** <https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [9 בדצמבר,‏ 2021,‏ 8:59pm UTC](https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661 "2021-12-09T20:59:16Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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:** [21 בדצמבר,‏ 2021,‏ 10:52pm UTC](https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661/14 "2021-12-21T22:52:45Z")

</div>

Can you let me know what you have set for `allow_uploaded_avatars`? It no longer is just a true/false setting, but is set to a certain trust level. And can you let me know what the trust level is of the user trying to change their avatar? And are you on the latest version of Discourse?

Here is the code for picking an avatar and the lines that return 422 responses.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/e/fe19ce4a528de52f4863dcbeb8bc723756f51a7e.png)

Not that it couldn’t be something else deep in the codebase, but it likely is one of these 3. The first one has to do with `discourse_connect_overrides_avatar` and apparently we ruled that one out. I don’t think it is the second one because your curl command looks correct and includes the “uploaded” type. It could possibly still be the third one with the `allow_uploaded_avatars` setting which is why I’d like to know what you have that one set to.

---

_[View the full topic](https://meta.discourse.org/t/user-avatar-selection-through-api-no-longer-working/211661)._
