# Update public key

**URL:** <https://hub.mender.io/t/update-public-key/5262>\
**Category:** General Discussions\
**Created:** [September 20, 2022, 11:54am UTC](https://hub.mender.io/t/update-public-key/5262 "2022-09-20T11:54:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prateekjadhav](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/prateekjadhav/32/1711_2.png) [@prateekjadhav](https://hub.mender.io/u/prateekjadhav)\
**Post date:** [September 20, 2022, 11:54am UTC](https://hub.mender.io/t/update-public-key/5262/1 "2022-09-20T11:54:34Z")

</div>

Hello Mender community,  
I have a accepted device in mender, I want to change public key of same using rest API.  
How to change public key of authorized device using rest API

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [September 20, 2022, 1:36pm UTC](https://hub.mender.io/t/update-public-key/5262/2 "2022-09-20T13:36:34Z")

</div>

I’m not sure I understand?

Why would you want to change the public-key? This means you are changing the private-key as well I suppose? And you will have to accept the device anew.
