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": "32937e2c-5e0d-4ddf-a1ae-e574b7f71bfe",
"TimeOffCategory": "bd820daf-cd17-498d-9f8e-c644395f2437",
"Start": "2026-05-02T16:43:40.2189845+00:00",
"End": "2026-05-02T16:43:40.2189845+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "540bc460-d68a-4ba6-b7e3-c68cdc8ba2f8",
"DateApproved": "2026-05-02T16:43:40.2189845+00:00",
"HourTP": {
"2026-05-02T16:43:40.2189845+00:00": 2.0
},
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.TimeOff",
"id": "35e1d722-881b-4a86-a3e2-a5d3e34dee8a",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "c7cf7ad0-5623-4add-8637-ed8ee13f986b",
"_ts": 639133370202189845
}
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": "afda1db1-a81e-485b-8dd8-33e714bc7c88",
"TimeOffCategory": "7c92bfa2-bf0d-4657-a262-05731be52eff",
"Start": "2026-05-02T16:43:40.2189845+00:00",
"End": "2026-05-02T16:43:40.2189845+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "00e10a22-8325-42a8-a2a8-9b19919530ed",
"DateApproved": "2026-05-02T16:43:40.2189845+00:00",
"HourTP": {
"2026-05-02T16:43:40.2189845+00:00": 2.0
},
"id": "804cd149-dd33-473d-bf02-fd10fb5930d6",
"ConfigId": "aaa493c7-bb97-43f3-b555-cf947c64203a"
}