Set timesheet status
Approve, decline or restore timesheet entries to pending.
MCP tool shiftbase_write → set_timesheet_status
write Confirm
Changes the status of every listed entry and returns the new status of each. Approved hours go on to the payroll report. A closed timesheet period rejects the change. Your role needs the right to approve hours. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| entry_ids array required | array | Entry ids from list_timesheet_entries. |
| status string required | string | One of approved, declined, pending. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "shiftbase_write",
"arguments": {
"operation": "set_timesheet_status",
"arguments": {
"entry_ids": [
"40118",
"40119",
"40122"
],
"status": "approved"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"updated": [
{
"id": "40118",
"status": "approved"
},
{
"id": "40119",
"status": "approved"
},
{
"id": "40122",
"status": "approved"
}
]
},
"isError": false
}