Is it possible to expose the Approvals API publicly, such that I could automate a user approving their own time for a given week? I am exporting time with reporting API into our billing system. I would like a way to mark and close exported time from our middleware that handles the integration.
Seems like the cleanest way is to leverage the existing Approvals functionality, since it takes care of locking records from editing.
An alternative would be a way of marking time as "exported", so I didn't read the same records twice into an external system. The issue is that time is still editable (without having Closed that period via approvals). And I am not sure there is a unique key that could be used?
Thank you!
-
We are thinking on REST API features right now and we definitely consider your requirement here.
I am not sure that we will implement Approval API endpoint in the first version, but I think about another endpoint: provide all data created and changed within some period of time. You can then ask API only for this small set of rows. Will that work for you?
Maxim
-
Hi Martin,
This API already released, this request somehow was not updated.
Please check updated API reference here: https://timehub.7pace.com/apireference/?urls.primaryName=7pace%20Timetracker%20API%20documentation%20v3.0-preview#/REST%20CRUD/post_api_rest_timeApproval_week
There are sending, revoking and reading endpoints for Approval.
Best regards,
Maxim Lutsan -
Hi Maxim
I re-read the original feature request, and I now see, that my need is not exactly the same as originally requested.
As a Time manager, I would like to be able to approve a week (not submit for approval) through the time approval api. Closing a week through the api is also fine.
Would you like me to create a new feature request?
Best regards,
Martin
Please sign in to leave a comment.
Comments
7 comments