POST api/timeoff
Add time off
Request Information
URI Parameters
None.
Body Parameters
TimeOff| Name | 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": "d3ad8ba0-2337-4889-8c6f-9ae24f0b90c9",
"TimeOffCategory": "23f8f8ed-3c8c-4c49-beea-ddbd83c92020",
"Start": "2026-07-21T13:02:58.5380144+00:00",
"End": "2026-07-21T13:02:58.5380144+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "b3d34eab-7eb1-4988-82aa-6d9cc3c9631e",
"DateApproved": "2026-07-21T13:02:58.5380144+00:00",
"HourTP": {
"2026-07-21T13:02:58.5380144+00:00": 2.0
},
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.TimeOff",
"id": "ae1d2fdd-d94d-47fc-bd8b-0935f7fa4fd8",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "a0cbe86d-747d-480f-959f-3b22914027d4",
"_ts": 0
}
Response Information
Resource Description
TimeOff| Name | 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": "bb1338da-78d7-4cbd-b2fa-d4b0e9e9a0bb",
"TimeOffCategory": "53afe162-5441-4b3a-a861-cddc733eda7d",
"Start": "2026-07-21T13:02:58.5380144+00:00",
"End": "2026-07-21T13:02:58.5380144+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "7802d452-60a8-479e-918f-870d65d3b608",
"DateApproved": "2026-07-21T13:02:58.5380144+00:00",
"HourTP": {
"2026-07-21T13:02:58.5380144+00:00": 2.0
},
"id": "b031844d-849b-4aeb-a424-290adb907b96",
"ConfigId": "4f50e287-a2ba-4314-938f-2b358a8a8f58"
}