Decline absence request

Decline a pending absence or leave request.

MCP tool shiftbase_write → decline_absence_request

write Confirm

Declines the request and returns its status. The schedule does not change. The employee is notified by Shiftbase. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: decline_absence_request
NameTypeDescription
request_id string required string Request id from list_absence_requests.
note string string Reason shown to the employee.

tools/call

JSON-RPC

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

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "request_id": "7732",
    "status": "declined"
  },
  "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.