# Batch set relative x-min?

**URL:** <https://forum.beeminder.com/t/batch-set-relative-x-min/12175>\
**Category:** Akrasia\
**Created:** [January 20, 2025, 12:28am UTC](https://forum.beeminder.com/t/batch-set-relative-x-min/12175 "2025-01-20T00:28:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![krugerk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/krugerk/32/5161_2.png) [@krugerk](https://forum.beeminder.com/u/krugerk)\
**Post date:** [January 20, 2025, 7:41am UTC](https://forum.beeminder.com/t/batch-set-relative-x-min/12175/2 "2025-01-20T07:41:35Z")

</div>

Previously users would use scripts using the official API to set the t-min to the date say weeks ago and run that script periodically.  
See [Year in review graph option - #2 by philip](https://forum.beeminder.com/t/year-in-review-graph-option/2834/2), which contains such a script, and [How do I set the 'zoom' on my beeminder visualization to show 1-2 weeks max and not the entire time period?](http://forum.beeminder.com/t/how-do-i-set-the-zoom-on-my-beeminder-visualization-to-show-1-2-weeks-max-and-not-the-entire-time-period/557).

Then Beeminder added direct support for setting relative t-min dates on the webpage of a particular goal. As far as I know, there is no place on the website to set such as a default for new goals nor is there a way to set it across several goals all at once. Furthermore, having done that, the API can no longer be used to either get or set the t-min until the t-min is set on the website to a non-relative date, it seems.

There was a discussion in Discord about this at the time the feature was being implemented on the website. See [Discord](https://discord.com/channels/775039310868381696/775039310868381700/1276172232321663029). A user suggested using ISO Date Durations to indicate the relative dates.

---

_[View the full topic](https://forum.beeminder.com/t/batch-set-relative-x-min/12175)._
