Approve Timesheets
approve_timesheetsApproves one or more filed timesheets, by submissionId, as the signed-in approver. Each week is checked on its own against the workspace approval rules (role, reports-to line, and no approving one's own hours unless the workspace allows it), so a refused week is reported beside the approved ones and never blocks them. Approved weeks lock. Handles "approve my team's timesheets for last week".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"submissionIds": "<submissionIds>"
},
"name": "approve_timesheets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | Not needed when signed in: these tools act as the signed-in approver, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming who is deciding. | |
| submissionIds | Yes | The weeks to approve, by the submissionId a timesheet approvals list gave. At most 25. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| refused | No | ||
| results | No | ||
| approved | No |