Skip to content

API Reference parrot_tools.interfaces.workday.handlers.put_time_clock_events

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

parrot_tools.interfaces.workday.handlers.put_time_clock_events

View source

PutTimeClockEventsType — handler for Put_Time_Clock_Events.

Builds the SOAP request body from a list of ClockEvent models, invokes self.service.call_operation(operation="Put_Time_Clock_Events", ...), and parses the acknowledgment into a per-row ClockEventResult DataFrame.

SOAP body shapes (verified in timetracking_custom_44_2.wsdl + Workday WWS v46.1):

  • Time_Clock_Event_Data repeats per event (maxOccurs unbounded).
  • Clock_Event_Type_Reference → {"ID": {"type": "Clock_Event_Type", "_value_1": "In|Break|Meal|Out"}}
  • Time_Zone_Reference → {"ID": {"type": "Time_Zone_ID", "_value_1": }}
  • Employee_ID / Position_ID / Time_Clock_Event_ID / Time_Entry_Code → plain xsd:string.
  • Time_Clock_Event_Date_Time → xsd:dateTime (isoformat).

Acknowledgment:

  • Put_Time_Clock_Events_Response → {"Response_Text": str} ONLY (no per-event WID, any version).
  • Put is ATOMIC: a Validation_Fault/Processing_Fault marks ALL rows failed.

Alias ClockEvent

Re-exported from parrot_tools.interfaces.workday.models.clock_event.ClockEvent.

Alias ClockEventResult

Re-exported from parrot_tools.interfaces.workday.models.clock_event.ClockEventResult.

Class PutTimeClockEventsType

Handler for Put_Time_Clock_Events (real-time clock-event submission).

Method PutTimeClockEventsType.build_request

Build the Put_Time_Clock_Events SOAP body.

build_request(events: list[ClockEvent], **kwargs) -> dict

Parameter Type Default Description
events list[ClockEvent] Pre-validated list of ClockEvent models.
**kwargs {}

Returns: dict — Dict with Time_Clock_Event_Data list ready for Zeep.

Method PutTimeClockEventsType.parse_ack

Parse Put_Time_Clock_Events_Response into a per-row status DataFrame.

Put is atomic: a single Response_Text means ALL events succeeded. A Validation_Fault/Processing_Fault will have raised before this point (zeep raises on SOAP faults automatically), so arriving here means success.

The event_id for each row is the CLIENT-assigned Time_Clock_Event_ID we sent (Workday returns no per-event WID in this operation).

parse_ack(raw: Any) -> pd.DataFrame

Parameter Type Default Description
raw Any Raw Zeep response object (Put_Time_Clock_Events_Response).

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

Method PutTimeClockEventsType.execute

Execute Put_Time_Clock_Events and return per-row status DataFrame.

Overrides the base execute template to capture events so that parse_ack can echo back the per-event time_clock_event_id.

execute(events: list[ClockEvent], **kwargs) -> pd.DataFrame

Parameter Type Default Description
events list[ClockEvent] Validated list of ClockEvent models.
**kwargs {}

Returns: pd.DataFrame — DataFrame with one row per input event: 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