Search Results for

    Show / Hide Table of Contents

    CalculateWorkTime

    Command, Introduced in version 2.28

    POST https://localhost:8001/sv/001.1/api/v1/TimeRecording/RecordingCalculations/CalculateWorkTime
    

    Calculates what the worktime would be between start and end taking the employee's schedule into account.

    Returns WorkTimeResponse

    Properties

    Name Type Summary Introduced in
    EmployeeId Int64 The business key identifier of the employee to make the calculation for.

    References Persons

    • Mandatory
    Start DateTimeOffset The start of the work interval.

    • Mandatory
    End DateTimeOffset The end of the work interval.

    • Mandatory
    IncludeFlexZones Boolean Include flex zones in calculation. Only used when flex is allowed on employee.

    • true by default
    Introduced in version 24.2

    Example

    {
      "EmployeeId": 0,
      "Start": "0001-01-01T00:00:00+00:00",
      "End": "0001-01-01T00:00:00+00:00",
      "IncludeFlexZones": false
    }
    
    In This Article
    Back to top Copyright © 2023 Monitor ERP System AB