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": "4c647ec3-8402-4470-93ef-ca4d1fdbec0b", "TimeOffCategory": "d0f4072e-5752-4cd0-a4e8-1b4c0ee82d66", "Start": "2025-04-04T02:26:36.8268338+00:00", "End": "2025-04-04T02:26:36.8268338+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "d4449cc9-456d-4707-aaf4-68c457946a3a", "DateApproved": "2025-04-04T02:26:36.8268338+00:00", "HourTP": { "2025-04-04T02:26:36.8268338+00:00": 2.0 }, "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TimeOff", "id": "d7939322-757c-4233-8dc1-964e49dacffa", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "1c2f59f9-3006-4d44-9b47-5eb8fec12073", "_ts": 638793303968268338 }
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": "9c1259fb-b8ac-4b35-90fb-d55375a78742", "TimeOffCategory": "c8b1d1ca-189d-468b-bf80-f7a85cae6309", "Start": "2025-04-04T02:26:36.8268338+00:00", "End": "2025-04-04T02:26:36.8268338+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "e087b021-07ed-4413-8bee-94db43203db2", "DateApproved": "2025-04-04T02:26:36.8268338+00:00", "HourTP": { "2025-04-04T02:26:36.8268338+00:00": 2.0 }, "id": "256beb58-f19a-4110-ba05-c2cf6d0605a9", "ConfigId": "38a904a0-e069-4834-89df-d2a0444c25bc" }