Approve absence request

Approve a pending absence or leave request.

MCP tool shiftbase_write → approve_absence_request

write Confirm

Approves the request and returns its new status and the shifts the absence policy changed in that period. The policy decides whether those shifts are removed, kept or opened. The employee is notified by Shiftbase. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_absence_request
NameTypeDescription
request_id string required string Request id from list_absence_requests.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "shiftbase_write",
    "arguments": {
      "operation": "approve_absence_request",
      "arguments": {
        "request_id": "7731"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "request_id": "7731",
    "status": "approved",
    "affected_shifts": [
      {
        "id": "90455",
        "date": "2026-11-04",
        "result": "opened"
      },
      {
        "id": "90460",
        "date": "2026-11-06",
        "result": "opened"
      }
    ]
  },
  "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.