Get user preferences - hourly rate via API #1602
Comments
|
Hello, I am not an expert of Kimai2 however I am currently testing the API. The hourly rate is available via the Timesheet. You can access it with the REST API call to /api/timesheets/{id}. For more info check the API documentation at https://demo.kimai.org/api/doc. Remember to login first at the demo to be able to see the documentation. |
|
Please note that the rate system will soon change and rate specific methods will be added: The users own hourly rate is afaik not available via API. |
|
Yes, I also believe it's not accessible via API. Of course you can get it via timesheets, but that might be different and also you may not yet have a timesheet. Anyway, with the coming changes, do you think the user own rate will still be present? |
|
The users own rate will stay where it is. It is still used as fallback, if you don't use eg. project specific rates. You can also add an API call as plugin, which will return that value (the DemoBundle has examples for new API calls). |
|
@amanzone are you willing to provide a PR with a new API route to fetch the users hourly rate? Should be only a couple of lines and I can help... |


I would need to get each user's hourly rate using the API (this should be one of the user preferences): how should I do it?
I'm not sure if it's already feasible (and I just cannot find it) or if this is missing.
Thanks in advance for your help.
Ciao,
Alberto
The text was updated successfully, but these errors were encountered: