Approve a request

Approve an absence request, shift booking, swap or unassignment request.

MCP tool quinyx_write → approve_request

write Confirm

Approving an absence request changes the schedule: each shift in the period is unassigned, deleted, reassigned or kept, as you set in shift_actions. The approved request leaves the Needs Approval list. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_request
NameTypeDescription
request_id string required string Id from list_approval_requests.
comment string string Comment for the employee and the audit log.
shift_actions array array For absence requests, one object per shift: shift_id and action, one of unassign, delete, reassign, keep. Reassign also takes employee_id.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "quinyx_write",
    "arguments": {
      "operation": "approve_request",
      "arguments": {
        "request_id": "77310",
        "comment": "Approved: 4 colleagues are scheduled each day. Both shifts are now open.",
        "shift_actions": [
          {
            "shift_id": "90412",
            "action": "unassign"
          },
          {
            "shift_id": "90437",
            "action": "unassign"
          }
        ]
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "request_id": "77310",
    "category": "absence_request",
    "status": "approved",
    "employee": "Elena Ruiz",
    "shift_actions": [
      {
        "shift_id": "90412",
        "action": "unassign"
      },
      {
        "shift_id": "90437",
        "action": "unassign"
      }
    ],
    "comment": "Approved: 4 colleagues are scheduled each day. Both shifts are now open."
  },
  "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.