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

Parameters: set_timesheet_status
NameTypeDescription
entry_ids array required array Entry ids from list_timesheet_entries.
status string required string One of approved, declined, pending.

tools/call

JSON-RPC

{
  "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

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "updated": [
      {
        "id": "40118",
        "status": "approved"
      },
      {
        "id": "40119",
        "status": "approved"
      },
      {
        "id": "40122",
        "status": "approved"
      }
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.