# How to update elastic-agent API key?

**URL:** <https://discuss.elastic.co/t/how-to-update-elastic-agent-api-key/354293>\
**Category:** Elastic Agent\
**Created:** [February 28, 2024, 5:22am UTC](https://discuss.elastic.co/t/how-to-update-elastic-agent-api-key/354293 "2024-02-28T05:22:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mang-Joo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mang-joo/32/130151_2.png) [@Mang-Joo](https://discuss.elastic.co/u/Mang-Joo)\
**Post date:** [February 28, 2024, 5:22am UTC](https://discuss.elastic.co/t/how-to-update-elastic-agent-api-key/354293/1 "2024-02-28T05:22:09Z")

</div>

hello.

I want to unenroll and re-enroll an agent in fleet.  
Where can I update the API KEY?

I want a way other than reinstalling.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 28, 2024, 5:57am UTC](https://discuss.elastic.co/t/how-to-update-elastic-agent-api-key/354293/2 "2024-02-28T05:57:05Z")

</div>

Hi @Mang-Joo

Exactly which API Key?

Or Are you talking enrollment token which is not an API key?

And finally probably the most important question. What are you trying to accomplish?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 27, 2024, 5:58am UTC](https://discuss.elastic.co/t/how-to-update-elastic-agent-api-key/354293/3 "2024-03-27T05:58:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
