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": "c5e7f755-1ef0-45f6-92f8-b9a50e082214",
"TimeOffCategory": "154752ad-f33e-4824-989b-0609e359f253",
"Start": "2026-09-29T19:18:21.2088792+00:00",
"End": "2026-09-29T19:18:21.2088792+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "4bcf17af-729d-45b5-8587-02bd39c8c8ef",
"DateApproved": "2026-09-29T19:18:21.2088792+00:00",
"HourTP": {
"2026-09-29T19:18:21.2088792+00:00": 2.0
},
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.TimeOff",
"id": "254c447b-caa7-41d3-b497-d83433637193",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "27b53474-76c8-448a-b2d3-f5069df0dea8",
"_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": "5d28ac34-0dff-4cf5-a02e-fd10598b0b51",
"TimeOffCategory": "3a4b426b-4808-4b8a-9ef8-ead2e585f4d6",
"Start": "2026-09-29T19:18:21.2088792+00:00",
"End": "2026-09-29T19:18:21.2088792+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "e2c22862-6a67-435e-a29c-72362598f0ed",
"DateApproved": "2026-09-29T19:18:21.2088792+00:00",
"HourTP": {
"2026-09-29T19:18:21.2088792+00:00": 2.0
},
"id": "c6a7df05-9b7b-438a-8a87-5c59af7b623b",
"ConfigId": "ca362f1c-d2cb-42d5-b046-bfdf8241323a"
}