PATCH api/timeoff/{Id}
Update time off
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
Required |
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": "ac07e156-d732-4baa-a774-a8c55e8bc355",
"TimeOffCategory": "a868047f-0dea-4a68-91dd-11adb91399ec",
"Start": "2026-07-01T16:16:13.8416334+00:00",
"End": "2026-07-01T16:16:13.8416334+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "1a3f1001-5a12-4d80-a70a-5a3add973a1a",
"DateApproved": "2026-07-01T16:16:13.8416334+00:00",
"HourTP": {
"2026-07-01T16:16:13.8416334+00:00": 2.0
},
"__app__": "WORKPLANNER",
"__entity_kind__": "WorkPlanner.Models.TimeOff",
"id": "87397d3b-a31d-4942-94f3-9e250c9c9de0",
"RestoreFromId": "00000000-0000-0000-0000-000000000000",
"ConfigId": "d2de3f59-60d3-40c0-a20e-8ece40eae0b5",
"_ts": 0
}
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": "2a6286d1-c4be-4054-aa06-a4452f1f0f33",
"TimeOffCategory": "d10ba79b-b63c-41ec-86bd-697c9cf8f908",
"Start": "2026-07-01T16:16:13.8416334+00:00",
"End": "2026-07-01T16:16:13.8416334+00:00",
"HoursPerDay": 5.0,
"Notes": "sample string 6",
"Status": 0,
"Approver": "80459195-5a14-4d87-8f67-8e0b4f8ef6a6",
"DateApproved": "2026-07-01T16:16:13.8416334+00:00",
"HourTP": {
"2026-07-01T16:16:13.8416334+00:00": 2.0
},
"id": "339efe93-74a7-4348-af77-394c6784df6b",
"ConfigId": "1636a945-44cb-406e-8ce9-3893f8236dd4"
}