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.
|
|
AbsenceFrom | DateTimeOffset | The start of the absence period.
|
|
AbsenceTo | DateTimeOffset | The end of the absence period.
|
|
AbsenceCodeId | Int64 | The business key identifier of the absence code.
|
|
Approved | Boolean | Specifies if the absence is approved.
|
|
Status | Int32? | Specifies the absence status.
|
Introduced in version 24.7 |
PartOfDay | Boolean? | part of day in the absence
|
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
}