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": "ebeea3a8-4531-4bfa-951b-fb0d8de16b36", "TimeOffCategory": "b56d2d6b-4c5f-4419-ac57-696ae3b95f0a", "Start": "2024-12-18T20:20:10.2572462+00:00", "End": "2024-12-18T20:20:10.2572462+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "c5ef9b0b-3d3c-4bff-92fe-7e807f8a3d29", "DateApproved": "2024-12-18T20:20:10.2572462+00:00", "HourTP": { "2024-12-18T20:20:10.2572462+00:00": 2.0 }, "__app__": "WORKPLANNER", "__entity_kind__": "WorkPlanner.Models.TimeOff", "id": "f0a766a5-d1bc-4536-977a-241b96452337", "RestoreFromId": "00000000-0000-0000-0000-000000000000", "ConfigId": "4d9a8ecb-d95c-4069-a1b4-b4feea64a526", "_ts": 638701500102572462 }
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": "221db369-9916-4828-b223-2b0484511689", "TimeOffCategory": "6db25f4d-6a37-4c06-b617-dce12f3e10f9", "Start": "2024-12-18T20:20:10.2572462+00:00", "End": "2024-12-18T20:20:10.2572462+00:00", "HoursPerDay": 5.0, "Notes": "sample string 6", "Status": 0, "Approver": "d5e7b691-e3c2-466f-bb41-e0f9d79b0d1b", "DateApproved": "2024-12-18T20:20:10.2572462+00:00", "HourTP": { "2024-12-18T20:20:10.2572462+00:00": 2.0 }, "id": "2d8c037a-3eae-4012-8f23-a34d16f45ae6", "ConfigId": "4ea7dfd5-d01b-400a-bc58-735921b15ae9" }