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": "52ee7ef8-1f0c-4644-b11b-74471887aab3",
"TimeOffCategory": "00ee101d-5f51-4f28-b61d-9266f600d973",
"Start": "2026-02-01T14:05:42.7586822+00:00",
"End": "2026-02-01T14:05:42.7586822+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "8d3212fa-fc5a-44a2-a460-da879d36f613",
"DateApproved": "2026-02-01T14:05:42.7586822+00:00",
"HourTP": {
"2026-02-01T14:05:42.7586822+00:00": 2.0
},
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.TimeOff",
"id": "a709b799-7704-4dfb-9b26-c79dab3947f7",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "85822ffd-2a1c-477e-ae07-75f2d55e0737",
"_ts": 639055515427586822
}
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": "8b3a9c99-8176-4a57-9ab8-a0eaad2865f8",
"TimeOffCategory": "d927b808-ef90-410e-a3d6-e8e3cd949781",
"Start": "2026-02-01T14:05:42.7586822+00:00",
"End": "2026-02-01T14:05:42.7586822+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "03bc5ad2-5430-4548-bddc-f2e77792ae11",
"DateApproved": "2026-02-01T14:05:42.7586822+00:00",
"HourTP": {
"2026-02-01T14:05:42.7586822+00:00": 2.0
},
"id": "06507f25-40ae-4c95-ad1d-0c52425ca249",
"ConfigId": "7059541c-b32a-4cbe-8ef6-0750986c5731"
}