POST api/timeoff
Add time off
Request Information
URI Parameters
None.
Body Parameters
TimeOffName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
TimeOffCategory | globally unique identifier |
None. |
|
Start | date |
None. |
|
End | date |
None. |
|
HoursPerDay | decimal number |
None. |
|
Notes | string |
None. |
|
Status | TimeOffStatusEnum |
None. |
|
Approver | globally unique identifier |
None. |
|
DateApproved | date |
None. |
|
HourTP | Dictionary of date [key] and decimal number [value] |
None. |
|
id | globally unique identifier |
None. |
|
ConfigId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserId": "760cdfe4-d64f-41b7-a53b-df1f8e2dae58", "TimeOffCategory": "d42ea7ce-7e98-44d6-b484-1ef689d2b673", "Start": "2025-07-08T17:55:34.8634483+00:00", "End": "2025-07-08T17:55:34.8634483+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "26b9d925-1b33-4e78-bd14-8ef7bdcd2a24", "DateApproved": "2025-07-08T17:55:34.8634483+00:00", "HourTP": { "2025-07-08T17:55:34.8634483+00:00": 2.0 }, "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TimeOff", "id": "601c5d15-a168-47da-93d6-500391cc3a39", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "859fe0a0-992c-4f07-a762-4a86663d98e6", "_ts": 638875941348634483 }
Response Information
Resource Description
TimeOffName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
TimeOffCategory | globally unique identifier |
None. |
|
Start | date |
None. |
|
End | date |
None. |
|
HoursPerDay | decimal number |
None. |
|
Notes | string |
None. |
|
Status | TimeOffStatusEnum |
None. |
|
Approver | globally unique identifier |
None. |
|
DateApproved | date |
None. |
|
HourTP | Dictionary of date [key] and decimal number [value] |
None. |
|
id | globally unique identifier |
None. |
|
ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{ "UserId": "442ad911-12cd-465a-84a5-3a10a6b361cc", "TimeOffCategory": "c3fc37f5-3f14-4b8f-b4c9-0903554a5075", "Start": "2025-07-08T17:55:34.8790754+00:00", "End": "2025-07-08T17:55:34.8790754+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "57b3d3a8-cbc9-4294-a7cf-291836f774cb", "DateApproved": "2025-07-08T17:55:34.8790754+00:00", "HourTP": { "2025-07-08T17:55:34.8790754+00:00": 2.0 }, "id": "92297962-a92d-4551-8fa5-ccb022235859", "ConfigId": "422fe017-ab16-4365-87d6-4da2a13b0778" }