PATCH api/timeoff/{Id}
Update time off
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
Required |
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": "063dd2ff-e2b8-4c0f-88e3-60393c32f72c", "TimeOffCategory": "8187e8b1-ce9d-4e9e-9d61-383a9e04cbbc", "Start": "2025-05-23T19:24:06.0676713+00:00", "End": "2025-05-23T19:24:06.0676713+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "f9c6a08d-61b1-4456-bf78-72f56fc61ca9", "DateApproved": "2025-05-23T19:24:06.0676713+00:00", "HourTP": { "2025-05-23T19:24:06.0676713+00:00": 2.0 }, "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TimeOff", "id": "812761ad-96a6-4157-95ce-dff8fa41ba39", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "34b77773-24fe-4f5b-aac4-11a3052922a6", "_ts": 638836250460676713 }
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": "1dc4fc11-09b1-45bf-85c6-e0b1c92fd626", "TimeOffCategory": "5cc2138f-38a8-4174-bc60-47efc938fa42", "Start": "2025-05-23T19:24:06.0676713+00:00", "End": "2025-05-23T19:24:06.0676713+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "79b1b131-ff2a-4746-b92e-3fd5b3293368", "DateApproved": "2025-05-23T19:24:06.0676713+00:00", "HourTP": { "2025-05-23T19:24:06.0676713+00:00": 2.0 }, "id": "0ac99f7f-4c39-461e-b94d-b31aeb10a194", "ConfigId": "711a8a77-7f25-45cb-87ee-17c68d9cc974" }