POST api/timeoff
Add time off
Request Information
URI Parameters
None.
Body Parameters
TimeOffName | 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": "30633441-121d-4f9d-80c1-7be35a7138b8", "TimeOffCategory": "ca7c2885-7b3a-43a7-b195-6fc1c46f8110", "Start": "2024-12-13T05:24:09.5243029+00:00", "End": "2024-12-13T05:24:09.5243029+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "6abfc9a2-5b75-46f4-a613-ae49ba8ffaae", "DateApproved": "2024-12-13T05:24:09.5243029+00:00", "HourTP": { "2024-12-13T05:24:09.5243029+00:00": 2.0 }, "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TimeOff", "id": "967635e2-1aa7-40a8-ad29-e6c990556aff", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "4999f634-451a-4448-9ac4-4776ba3adffc", "_ts": 638696642495243029 }
Response Information
Resource Description
TimeOffName | 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": "9d9a8673-88b1-4fa6-8c23-4f2b0de7c8f6", "TimeOffCategory": "caeca7b7-6f8d-4ee9-bc72-b8aba881fb76", "Start": "2024-12-13T05:24:09.5243029+00:00", "End": "2024-12-13T05:24:09.5243029+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "b30ec55c-bb27-49a2-833d-d8891891e280", "DateApproved": "2024-12-13T05:24:09.5243029+00:00", "HourTP": { "2024-12-13T05:24:09.5243029+00:00": 2.0 }, "id": "f4ec3ce9-4dd4-43b6-8ed9-7d99584988a8", "ConfigId": "e5e16d09-b891-4b0e-ae5b-c984fc909eb3" }