Set time rules
set_time_rulesSets the rules that close logged hours on all the projects the user owns, which change what every person on them can do: lockedUntil, a day (YYYY-MM-DD, up to today) closes every day on or before it for everybody, the user included, until the date is changed; editWindowDays, a whole number of days (0 to 366), limits how far back people other than the user can fix their own hours (0 = only today). null clears a rule; a field left out stays. Setting rules is a Pro feature; turning them off is allowed on every plan, and rules already set keep protecting the hours if the plan lapses. Needs confirm: true; without it the result is a preview that says how many hours get frozen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true performs the action. Without it (or with any value other than the boolean true) nothing changes and the result is a preview of the effects. | |
| lockedUntil | No | The last day that is closed, YYYY-MM-DD, not later than today; null reopens everything. | |
| editWindowDays | No | Days back that people other than the owner can still change their hours (0 to 366; 0 = only today); null = no limit. |