# xmin and xmax via api

**URL:** <https://forum.beeminder.com/t/xmin-and-xmax-via-api/9031>\
**Category:** Tech\
**Created:** [February 22, 2021, 5:09pm UTC](https://forum.beeminder.com/t/xmin-and-xmax-via-api/9031 "2021-02-22T17:09:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![philip](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/philip/32/1505_2.png) [@philip](https://forum.beeminder.com/u/philip)\
**Post date:** [February 28, 2021, 7:09pm UTC](https://forum.beeminder.com/t/xmin-and-xmax-via-api/9031/5 "2021-02-28T19:09:49Z")

</div>

As Adam says, it’s called tmin. I set it by script all the time, using `yyyy-mm-dd` date format.

A fragment from [my tmin script](https://github.com/pjjh/bmndr/blob/master/tmin.sh)

> `curl -# -X PUT -d "{\"tmin\":\"$TMIN\"}" https://www.beeminder.com/api/v1/users/$username/goals/$GOAL.json?auth_token=$auth_token --header "Content-Type: application/json"`

---

_[View the full topic](https://forum.beeminder.com/t/xmin-and-xmax-via-api/9031)._
