# Не удается изменить аватар через API Discourse

**URL:** <https://meta.discourse.org/t/failing-to-change-avatar-using-discourse-api/261828>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [16.Апрель.2023 06:39:25 UTC](https://meta.discourse.org/t/failing-to-change-avatar-using-discourse-api/261828 "2023-04-16T06:39:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EGreg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/egreg/32/133614_2.png) [@EGreg](https://meta.discourse.org/u/EGreg)\
**Post date:** [16.Апрель.2023 07:08:01 UTC](https://meta.discourse.org/t/failing-to-change-avatar-using-discourse-api/261828/2 "2023-04-16T07:08:01Z")

</div>

И ещё, по какой-то причине ссылки в описании и на сайте некликабельны после того, как я установил их через CURL:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/5/1/551b0da7e8a70d5a505acf6d36aabde145f66a61.jpeg)

Но в других блоках сводки они работают. При этом используются те же самые URL.

Что я делаю не так?

```php
        Q_Utils::put($this->apiHost."/u/$username.json", array(
            'title' => 'Forum Engagement Bot',
            'bio_raw' => 'Powered by https://engageusers.ai',
            'website' => 'https://engageusers.ai'
        ), null, null, $headers);

```

---

_[View the full topic](https://meta.discourse.org/t/failing-to-change-avatar-using-discourse-api/261828)._
