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
| Name | Type | Description |
|---|---|---|
| request_id string required | string | Request id from list_absence_requests. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "shiftbase_write",
"arguments": {
"operation": "approve_absence_request",
"arguments": {
"request_id": "7731"
}
}
}
} Example response
{
"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
}