# Need Help updating profile info via API

**URL:** <https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [May 3, 2024, 9:03pm UTC](https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686 "2024-05-03T21:03:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [May 3, 2024, 10:14pm UTC](https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686/2 "2024-05-03T22:14:01Z")

</div>

> [@Earnie\_Baird](#):
>
> but I get [“BAD CSRF”] so I tried this:

Yes, this way has been deprecated in favor of passing the credentials in the header (as below).

> [@Earnie\_Baird](#):
>
> `-d '{"name”: “new name"}' \`

You mixed quote characters: `"` and `”`. This might be the reason here. 🤔

---

_[View the full topic](https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686)._
