# How can I archive goal using API?

**URL:** <https://forum.beeminder.com/t/how-can-i-archive-goal-using-api/6064>\
**Category:** Bugabee\
**Created:** [December 7, 2019, 9:26am UTC](https://forum.beeminder.com/t/how-can-i-archive-goal-using-api/6064 "2019-12-07T09:26:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![beeminder\_user](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@beeminder\_user](https://forum.beeminder.com/u/beeminder_user)\
**Post date:** [December 7, 2019, 9:26am UTC](https://forum.beeminder.com/t/how-can-i-archive-goal-using-api/6064/1 "2019-12-07T09:26:52Z")

</div>

I found [https://api.beeminder.com/#goal](https://api.beeminder.com/#goal) and read through it, also searched for “archive”

Both failed to find anything.

How can I archive goal through the API? Is it necessary to build something running Selenium or equivalent?

---

<div class="post-metadata">

**Author:** ![adamwolf](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/adamwolf/32/484_2.png) [@adamwolf](https://forum.beeminder.com/u/adamwolf)\
**Post date:** [December 7, 2019, 6:56pm UTC](https://forum.beeminder.com/t/how-can-i-archive-goal-using-api/6064/5 "2019-12-07T18:56:00Z")

</div>

To respond to the original question, I looked at the source and it doesn’t look like it’s exposed via the API.

It is done via a POST, so if you need to automate it today or something, you could probably do it with a cookie and a POST and that’d be more reliable than something like Selenium tends to be.

I don’t steer the Beeminder ship, but it seems that archive support may be a pretty straightforward addition, and I’d love to see it too.

I suppose if archive gets added, probably unarchived should be added too, huh?

---

<div class="post-metadata">

**Author:** ![adamwolf](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/adamwolf/32/484_2.png) [@adamwolf](https://forum.beeminder.com/u/adamwolf)\
**Post date:** [December 9, 2019, 5:47pm UTC](https://forum.beeminder.com/t/how-can-i-archive-goal-using-api/6064/8 "2019-12-09T17:47:21Z")

</div>

Hi folks! I deleted some of my posts on this thread as I figure out how to constructively improve the forum guidelines, in case the history seems weird here.

---

<div class="post-metadata">

**Author:** ![phi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/phi/32/2586_2.png) [@phi](https://forum.beeminder.com/u/phi)\
**Post date:** [December 9, 2019, 10:31pm UTC](https://forum.beeminder.com/t/how-can-i-archive-goal-using-api/6064/9 "2019-12-09T22:31:44Z")

</div>

Ditto!
