# Update user avatar\_template via API

**URL:** https://meta.discourse.org/t/update-user-avatar-template-via-api/277324
**Category:** Development
**Tags:** s3, rest-api
**Created:** [August 31, 2023, 10:12am UTC](https://meta.discourse.org/t/update-user-avatar-template-via-api/277324 "2023-08-31T10:12:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Pello\_Mugica\_Lopez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pello_mugica_lopez/32/323638_2.png) [@Pello\_Mugica\_Lopez](https://meta.discourse.org/u/Pello_Mugica_Lopez)
#### Post date: [August 31, 2023, 10:12am UTC](https://meta.discourse.org/t/update-user-avatar-template-via-api/277324/1 "2023-08-31T10:12:33Z")

</div>

Hello!!! I want to update the avatar of the forum from the website that manage the user, this image is in a S3 bucket.

> **[Discourse API Docs](https://docs.discourse.org/#tag/Users/operation/updateUser)**

I’m trying that endpoint but when I do the tests via postman is not working anything, any clue why is happening?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [August 31, 2023, 6:42pm UTC](https://meta.discourse.org/t/update-user-avatar-template-via-api/277324/2 "2023-08-31T18:42:16Z")

</div>

Welcome 🙂

Can you share your payload?  
What does postman return?

---

<div class="post-metadata">

### Author: ![Pello\_Mugica\_Lopez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pello_mugica_lopez/32/323638_2.png) [@Pello\_Mugica\_Lopez](https://meta.discourse.org/u/Pello_Mugica_Lopez)
#### Post date: [August 31, 2023, 7:00pm UTC](https://meta.discourse.org/t/update-user-avatar-template-via-api/277324/3 "2023-08-31T19:00:14Z")

</div>

Thanks for the welcome!  
The postman return a 200 ok status and in the body:

```plaintext
{
"success": "ok",
"user":{
same data without alteration
}
}

```

In the PUT petition I have this in the body:

```plaintext
{
"avatar_template": "S3_URL"
}

```
