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": "b471d3cb-330c-4a7a-bac0-27ad33dfe6b5", "TimeOffCategory": "dedff8b7-b02c-4851-9398-a68fdbd667e5", "Start": "2025-04-04T02:29:16.0142222+00:00", "End": "2025-04-04T02:29:16.0142222+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "aa68c9f5-8e13-4b1f-9228-f951b2ed7351", "DateApproved": "2025-04-04T02:29:16.0142222+00:00", "HourTP": { "2025-04-04T02:29:16.0142222+00:00": 2.0 }, "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TimeOff", "id": "0e5edf86-1a3c-4d06-b416-97a5f7f13dc2", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "e577fe33-83af-458a-ad84-1ca511028c5d", "_ts": 638793305560142222 }
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": "7bca6b7e-4cb4-4c33-9b19-7c0a750dbd8c", "TimeOffCategory": "06cc95ce-43d0-4cd8-a0ef-f430c898aeac", "Start": "2025-04-04T02:29:16.0142222+00:00", "End": "2025-04-04T02:29:16.0142222+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "5067724c-95c5-4f67-a82f-57bc318d2f86", "DateApproved": "2025-04-04T02:29:16.0142222+00:00", "HourTP": { "2025-04-04T02:29:16.0142222+00:00": 2.0 }, "id": "81104f9d-ee29-41d5-a9c8-b26d836371c1", "ConfigId": "cfb5a288-5720-4eee-a16a-d2180dc13942" }