Set project rate
project_set_rateSet a project's hourly rate and currency, with optional re-rating of already logged time entries to reflect the new value.
Instructions
Set the hourly rate and currency used to turn tracked hours into money for a project or client. Returns the new rate and, when re-rating is asked for, how many already logged entries changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project or client name. A partial name that matches exactly one existing project is used as that project. | |
| currency | No | Currency: a code (EUR, USD, GBP, PLN) or a word ('euros', 'pounds', 'zl'). Defaults to the shared business profile's default_currency, else USD. | |
| hourly_rate | Yes | Hourly rate: a number (85) or the words the user said ('90 euros an hour'). '1,200 USD' is 1200; '12,50 EUR' is 12.50; anything ambiguous is refused. | |
| only_missing | No | Only meaningful with apply_to_existing. True restores the old fill-the-gaps behaviour: only entries that carry no rate of their own are touched. Default false, which re-stamps every entry of the project. | |
| apply_to_existing | No | Re-rate time already logged for this project: every entry is re-stamped with the new rate, including entries that already carry one. Default false: the new rate applies to future entries only, because each entry captures the rate in force when it was logged. |