# API를 통한 프로필 정보 업데이트 방법 문의

**URL:** <https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [5월 3, 2024, 9:03오후 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:** 7

<div class="post-metadata">

**Author:** ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)\
**Post date:** [5월 4, 2024, 7:49오후 UTC](https://meta.discourse.org/t/need-help-updating-profile-info-via-api/306686/7 "2024-05-04T19:49:03Z")

</div>

음… 마침 해결 방법을 찾았습니다. 나중에 이 방법을 찾는 사람이 있을까 봐 간단히 정리해 둡니다. 포럼에서 찾은 다른 답변들은 오래된 것이었거든요.

API를 통해 이름을 업데이트하려면:  
`curl -X PUT -H "Content-Type: application/json; charset=utf-8" -H "Api-Key: mykey" -H "Api-Username: username" -d '{"name": “mynewname"}' -L 'https://mysite.com/u/user12345.json'`

API를 통해 사용자 이름을 업데이트하려면:  
`curl -X PUT -H "Content-Type: application/json; charset=utf-8" -H "Api-Key: myapikey" -H "Api-Username: username" -d '{"new_username": "mynewusername"}' -L 'https://mysite.com/u/user12345/preferences/username.json'`

---

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