Submit a week for approval
submit_timesheetHands in the user's week of hours (give any day of it; weeks run Monday to Sunday) for approval to each owner of the projects the user logged hours on that week, or only to ownerId. From then on the user cannot add, change or delete their hours of that week on those projects until the owner rejects it or the user withdraws it, and an approved week stays closed. A week can be submitted from its Monday on, a timer running in that week has to be stopped first, and a week already submitted or approved stays as it is. Each owner gets a notification. The owner's plan has to include it (Pro). Needs confirm: true; without it the result is a preview with the hours for each owner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | Yes | Any day of the week to submit, YYYY-MM-DD. | |
| 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. | |
| ownerId | No | Only to this owner (one of the owners of the projects the user logged hours on that week). |