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": "b09835bf-2c3c-49b2-a093-7780c6ee97e2",
"TimeOffCategory": "c906951f-b85d-4131-93ff-5949b74ddba2",
"Start": "2026-06-05T16:19:42.8938951+00:00",
"End": "2026-06-05T16:19:42.8938951+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "912ccfca-6d35-44b8-a78b-9f7305890ac3",
"DateApproved": "2026-06-05T16:19:42.8938951+00:00",
"HourTP": {
"2026-06-05T16:19:42.8938951+00:00": 2.0
},
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.TimeOff",
"id": "dfd90e6a-4c54-4e62-bbd3-407ee6c97947",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "712f4ae9-86f5-40ef-8b7c-b41bb5a4a0e1",
"_ts": 639162731828938951
}
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": "6d0c9193-7d90-4d49-9e64-59bddd730f2f",
"TimeOffCategory": "7d22bbcb-6889-4ce8-bab8-418ff654b343",
"Start": "2026-06-05T16:19:42.8938951+00:00",
"End": "2026-06-05T16:19:42.8938951+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "1351d208-c77b-4430-b3f7-98b3778783f0",
"DateApproved": "2026-06-05T16:19:42.8938951+00:00",
"HourTP": {
"2026-06-05T16:19:42.8938951+00:00": 2.0
},
"id": "1a43ae52-6262-4c25-8926-6ec6c83f3255",
"ConfigId": "2a67c8b1-bf6f-411d-9822-7f52f3fd8e3e"
}