Skip to content

API Reference parrot_tools.interfaces.workday.handlers.time_off_request

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.interfaces.workday.handlers.time_off_request

View source

RequestTimeOffType — handler for Request_Time_Off.

Builds the SOAP request body for submitting a time-off request to Workday Absence Management and parses the acknowledgment into a one-row status DataFrame.

SOAP body shapes (Absence Management WSDL, Request_Time_Off operation):

  • Time_Off_Request_Data.Worker_Reference → Employee_ID reference
  • Time_Off_Request_Data.Time_Off_Request_Line_Data[] → Time_Off_Type_Reference, Start_Date, End_Date, Daily_Quantity
  • Optional Comment field at the request level.

Acknowledgment:

  • Request_Time_Off_Response → contains the submitted request WID/ID.
  • zeep raises a Validation_Fault/Processing_Fault on SOAP errors before this point, so arriving here means the submission was accepted.

Class RequestTimeOffType

Handler for Request_Time_Off (Absence Management write op).

Method RequestTimeOffType.build_request

Build the Request_Time_Off SOAP body.

build_request(worker_id: str, start_date: str, end_date: str, time_off_type: str, daily_quantity: float = 8.0, comment: Optional[str] = None, **kwargs: Any) -> dict

Parameter Type Default Description
worker_id str Workday Employee ID.
start_date str Start date (YYYY-MM-DD).
end_date str End date (YYYY-MM-DD).
time_off_type str Time_Off_Type_ID value (e.g. "PTO").
daily_quantity float 8.0 Hours or days per calendar day (default 8.0).
comment Optional[str] None Optional employee comment on the request.
**kwargs Any {}

Returns: dict — Dict ready to be unpacked as kwargs for call_operation.

Method RequestTimeOffType.parse_ack

Parse Request_Time_Off_Response into a one-row status DataFrame.

parse_ack(raw: Any) -> pd.DataFrame

Parameter Type Default Description
raw Any Raw Zeep response object.

Returns: pd.DataFrame — DataFrame with columns: submitted, event_id, error.

Alias WorkdayWriteTypeBase

Re-exported from parrot_tools.interfaces.workday.handlers.base.WorkdayWriteTypeBase.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally