Show / Hide Table of Contents

    CreatePlannedAbsence

    Command, Introduced in version 2.47

    POST https://localhost:8001/sv/001.1/api/v1/TimeRecording/Persons/CreatePlannedAbsence
    

    Adds a planned absence to the person.

    Returns EntityCommandResponse

    The root entity id of the response is the business key identifier of the person.

    The entity id of the response is the business key identifier of the updated planned absence.

    Required permission

    Modify person
    

    Properties

    Name Type Summary Introduced in
    PersonId Int64 The business key identifier of the person.

    • Mandatory
    • References Persons
    AbsenceFrom DateTimeOffset The start of the absence period.

    • Mandatory
    AbsenceTo DateTimeOffset The end of the absence period.

    • Mandatory
    AbsenceCodeId Int64 The business key identifier of the absence code.

    • Mandatory
    • References AbsenceCodes
    Approved Boolean Specifies if the absence is approved.

    • Obsolete since version 24.7 (Use status instead. (Returns true if status is approved else returns false))
    Status Int32? Specifies the absence status.

    • AppliedFor: 0
    • Approved: 1
    • Denied: 2

    • Applied for by default
    Introduced in version 24.7
    PartOfDay Boolean? part of day in the absence

    • true by default
    Introduced in version 24.4

    Example

    {
      "PersonId": 0,
      "AbsenceFrom": "0001-01-01T00:00:00+00:00",
      "AbsenceTo": "0001-01-01T00:00:00+00:00",
      "AbsenceCodeId": 0,
      "Approved": false,
      "Status": null,
      "PartOfDay": null
    }
    
    Back to top Copyright © 2023 Monitor ERP System AB