Skip to content

Commit f2d6103

Browse files
authored
Merge pull request #25904 from microsoftgraph/users/lemike/timeCardBeta
Fix TimeCard, Schedule in Beta
2 parents a3819e0 + 0b43621 commit f2d6103

14 files changed

+177
-67
lines changed

api-reference/beta/api/schedule-get.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: "Get schedule"
33
description: "Retrieve the properties and relationships of a **schedule** object."
44
author: "shanemalone"
5+
ms.date: 12/04/2024
56
ms.localizationpriority: medium
67
ms.subservice: "teams"
78
doc_type: apiPageType
8-
ms.date: 04/05/2024
99
---
1010

1111
# Get schedule
@@ -136,6 +136,7 @@ Content-type: application/json
136136
"timeOffRequestsEnabled": true,
137137
"startDayOfWeek": "Monday",
138138
"activitiesIncludedWhenCopyingShiftsEnabled": true,
139+
"isActivitiesIncludedWhenCopyingShiftsEnabled": true,
139140
"isCrossLocationShiftsEnabled": true,
140141
"isCrossLocationShiftRequestApprovalRequired": true
141142
}

api-reference/beta/api/team-put-schedule.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: "Create or replace schedule"
33
description: "Create or replace a **schedule** object."
44
author: "shanemalone"
5+
ms.date: 12/04/2024
56
ms.localizationpriority: medium
67
ms.subservice: "teams"
78
doc_type: apiPageType
8-
ms.date: 04/05/2024
99
---
1010

1111
# Create or replace schedule
@@ -142,6 +142,7 @@ Content-type: application/json
142142
"timeOffRequestsEnabled": true,
143143
"startDayOfWeek": "Sunday",
144144
"activitiesIncludedWhenCopyingShiftsEnabled": true,
145+
"isActivitiesIncludedWhenCopyingShiftsEnabled": true,
145146
"isCrossLocationShiftsEnabled": true,
146147
"isCrossLocationShiftRequestApprovalRequired": true
147148
}
@@ -171,17 +172,10 @@ PUT https://graph.microsoft.com/beta/teams/871dbd5c-3a6a-4392-bfe1-042452793a50/
171172
"offerShiftRequestsEnabled": true,
172173
"timeOffRequestsEnabled": true,
173174
"startDayOfWeek": "Tuesday",
174-
"activitiesIncludedWhenCopyingShiftsEnabled": true,
175+
"isActivitiesIncludedWhenCopyingShiftsEnabled": true,
175176
"isCrossLocationShiftsEnabled": true,
176177
"isCrossLocationShiftRequestApprovalRequired": true,
177-
"timeClockEnabled": true,
178-
"timeClockSettings": {
179-
"approvedLocation": {
180-
"altitude": 1024.13,
181-
"latitude": 26.13246,
182-
"longitude": 24.34616
183-
}
184-
}
178+
"timeClockEnabled": true
185179
}
186180
```
187181

@@ -245,16 +239,10 @@ Content-type: application/json
245239
"timeOffRequestsEnabled": true,
246240
"startDayOfWeek": "Tuesday",
247241
"activitiesIncludedWhenCopyingShiftsEnabled": true,
242+
"isActivitiesIncludedWhenCopyingShiftsEnabled": true,
248243
"isCrossLocationShiftsEnabled": true,
249244
"isCrossLocationShiftRequestApprovalRequired": true,
250-
"timeClockEnabled": true,
251-
"timeClockSettings": {
252-
"approvedLocation": {
253-
"altitude": 1024.13,
254-
"latitude": 26.13246,
255-
"longitude": 24.34616
256-
}
257-
}
245+
"timeClockEnabled": true
258246
}
259247
```
260248

api-reference/beta/api/timecard-clockin.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ In the request body, provide a JSON object with the following parameters.
5050

5151
| Parameter | Type | Description |
5252
|:-------------|:------------|:------------|
53-
|atApprovedLocation| `Edm.boolean ` | Indicate if this action happens at an approved location.|
54-
|onBehalfOfUserId| String | Optional parameter used by the manager to clock in on behalf of a user.|
55-
|notes| [itemBody](../resources/itembody.md) |Notes for the clock in. |
53+
|isAtApprovedLocation|Boolean|Indicates whether this action happens at an approved location.|
54+
|notes|[itemBody](../resources/itembody.md)|Notes for the clock in.|
55+
|atApprovedLocation (deprecated)|Boolean|Indicates whether this action happens at an approved location. This property will be removed by November 27, 2027. Use `isAtApprovedLocation` instead. `atApprovedLocation` and `isAtApprovedLocation` always have the same value, so setting one automatically sets the value for the other. If both are included in the request with different values, the value for `isAtApprovedLocation` takes precedence.|
5656

5757
## Response
5858

@@ -74,10 +74,10 @@ POST https://graph.microsoft.com/beta/teams/fd15cad8-80f6-484f-9666-3caf695fbf32
7474
Content-type: application/json
7575
7676
{
77-
"atAprovedLocation": true,
77+
"isAtApprovedLocation": true,
7878
"notes": {
7979
"contentType": "text",
80-
"content": "clock in notes"
80+
"content": "clocking in"
8181
}
8282
}
8383
```
@@ -151,21 +151,23 @@ Content-type: application/json
151151
},
152152
"clockInEvent": {
153153
"dateTime": "2021-05-27T22:58:41.327Z",
154-
"atApprovedLocation": null,
154+
"atApprovedLocation": true,
155+
"isAtApprovedLocation": true,
155156
"notes": {
156157
"contentType": "text",
157-
"content": "clock in notes"
158+
"content": "clocking in"
158159
}
159160
},
160161
"breaks": [],
161162
"originalEntry": {
162163
"clockOutEvent": null,
163164
"clockInEvent": {
164165
"dateTime": "2021-05-27T22:58:41.327Z",
165-
"atApprovedLocation": null,
166+
"atApprovedLocation": true,
167+
"isAtApprovedLocation": true,
166168
"notes": {
167169
"contentType": "text",
168-
"content": "clock in notes"
170+
"content": "clocking in"
169171
}
170172
},
171173
"breaks": []

api-reference/beta/api/timecard-clockout.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ In the request body, provide a JSON object with the following parameters.
5050

5151
| Parameter | Type | Description |
5252
|:-------------|:------------|:------------|
53-
|atApprovedLocation| `Edm.boolean ` | Indicate if this action happens at an approved location.|
54-
|notes| [itemBody](../resources/itembody.md) |Notes for the clock out. |
53+
|isAtApprovedLocation|Boolean|Indicates whether this action happens at an approved location.|
54+
|notes|[itemBody](../resources/itembody.md)|Notes for the clock out.|
55+
|atApprovedLocation (deprecated)|Boolean|Indicates whether this action happens at an approved location. This property will be removed by November 27, 2027. Use `isAtApprovedLocation` instead. `atApprovedLocation` and `isAtApprovedLocation` always have the same value, so setting one automatically sets the value for the other. If both are included in the request with different values, the value for `isAtApprovedLocation` takes precedence.|
5556

5657
## Response
5758

@@ -76,10 +77,10 @@ POST https://graph.microsoft.com/beta/teams/fd15cad8-80f6-484f-9666-3caf695fbf32
7677
Content-type: application/json
7778
7879
{
79-
"atAprovedLocation": true,
80+
"isAtApprovedLocation": true,
8081
"notes": {
8182
"contentType": "text",
82-
"content": "clock out smaple notes"
83+
"content": "clocking out"
8384
}
8485
}
8586
```

api-reference/beta/api/timecard-endbreak.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ In the request body, provide a JSON object with the following parameters.
5050

5151
| Parameter | Type | Description |
5252
|:-------------|:------------|:------------|
53-
|atApprovedLocation| `Edm.boolean ` | Indicate if this action happens at an approved location.|
54-
|notes| [itemBody](../resources/itembody.md) |Notes during end of break.|
53+
|isAtApprovedLocation|Boolean|Indicates whether this action happens at an approved location.|
54+
|notes|[itemBody](../resources/itembody.md)|Notes for the end of the break.|
55+
|atApprovedLocation (deprecated)|Boolean|Indicates whether this action happens at an approved location. This property will be removed by November 27, 2027. Use `isAtApprovedLocation` instead. `atApprovedLocation` and `isAtApprovedLocation` always have the same value, so setting one automatically sets the value for the other. If both are included in the request with different values, the value for `isAtApprovedLocation` takes precedence.|
5556

5657
## Response
5758

@@ -74,10 +75,10 @@ The following example shows a request.
7475
POST https://graph.microsoft.com/beta/teams/fd15cad8-80f6-484f-9666-3caf695fbf32/schedule/timeCards/TCK_cc09588d-d9d2-4fa0-85dc-2aa5ef983972/endbreak
7576
7677
{
77-
"atAprovedLocation": true,
78+
"isAtApprovedLocation": true,
7879
"notes": {
7980
"contentType": "text",
80-
"content": "end break smaple notes"
81+
"content": "ending break"
8182
}
8283
}
8384
```

api-reference/beta/api/timecard-get.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Content-type: application/json
138138
"clockInEvent": {
139139
"dateTime": "2021-05-27T22:58:41.327Z",
140140
"atApprovedLocation": null,
141+
"isAtApprovedLocation": null,
141142
"notes": {
142143
"contentType": "text",
143144
"content": "clock in notes"
@@ -146,6 +147,7 @@ Content-type: application/json
146147
"clockOutEvent": {
147148
"dateTime": "2021-05-27T23:01:46.205Z",
148149
"atApprovedLocation": null,
150+
"isAtApprovedLocation": null,
149151
"notes": {
150152
"contentType": "text",
151153
"content": "clock out smaple notes"
@@ -158,6 +160,7 @@ Content-type: application/json
158160
"start": {
159161
"dateTime": "2021-05-27T22:59:59.328Z",
160162
"atApprovedLocation": null,
163+
"isAtApprovedLocation": null,
161164
"notes": {
162165
"contentType": "text",
163166
"content": "start break smaple notes"
@@ -166,6 +169,7 @@ Content-type: application/json
166169
"end": {
167170
"dateTime": "2021-05-27T23:01:10.205Z",
168171
"atApprovedLocation": null,
172+
"isAtApprovedLocation": null,
169173
"notes": {
170174
"contentType": "text",
171175
"content": "end break smaple notes"
@@ -177,6 +181,7 @@ Content-type: application/json
177181
"clockInEvent": {
178182
"dateTime": "2021-05-27T22:58:41.327Z",
179183
"atApprovedLocation": null,
184+
"isAtApprovedLocation": null,
180185
"notes": {
181186
"contentType": "text",
182187
"content": "clock in notes"
@@ -185,6 +190,7 @@ Content-type: application/json
185190
"clockOutEvent": {
186191
"dateTime": "2021-05-27T23:01:46.205Z",
187192
"atApprovedLocation": null,
193+
"isAtApprovedLocation": null,
188194
"notes": {
189195
"contentType": "text",
190196
"content": "clock out smaple notes"
@@ -197,6 +203,7 @@ Content-type: application/json
197203
"start": {
198204
"dateTime": "2021-05-27T22:59:59.328Z",
199205
"atApprovedLocation": null,
206+
"isAtApprovedLocation": null,
200207
"notes": {
201208
"contentType": "text",
202209
"content": "start break smaple notes"
@@ -205,6 +212,7 @@ Content-type: application/json
205212
"end": {
206213
"dateTime": "2021-05-27T23:01:10.205Z",
207214
"atApprovedLocation": null,
215+
"isAtApprovedLocation": null,
208216
"notes": {
209217
"contentType": "text",
210218
"content": "end break smaple notes"

api-reference/beta/api/timecard-list.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ Content-type: application/json
142142
"clockInEvent": {
143143
"dateTime": "2020-09-21T18:01:29.302Z",
144144
"atApprovedLocation": null,
145+
"isAtApprovedLocation": null,
145146
"notes": {
146147
"contentType": "text",
147148
"content": "ClockIn-OBO Shorbani"
@@ -150,6 +151,7 @@ Content-type: application/json
150151
"clockOutEvent": {
151152
"dateTime": "2021-05-27T18:14:44.503Z",
152153
"atApprovedLocation": null,
154+
"isAtApprovedLocation": null,
153155
"notes": {
154156
"contentType": "text",
155157
"content": "clock out notes"
@@ -160,6 +162,7 @@ Content-type: application/json
160162
"clockInEvent": {
161163
"dateTime": "2020-09-21T18:01:29.302Z",
162164
"atApprovedLocation": null,
165+
"isAtApprovedLocation": null,
163166
"notes": {
164167
"contentType": "text",
165168
"content": "ClockIn-OBO Shorbani"
@@ -168,6 +171,7 @@ Content-type: application/json
168171
"clockOutEvent": {
169172
"dateTime": "2021-05-27T18:14:44.503Z",
170173
"atApprovedLocation": null,
174+
"isAtApprovedLocation": null,
171175
"notes": {
172176
"contentType": "text",
173177
"content": "clock out notes"
@@ -206,6 +210,7 @@ Content-type: application/json
206210
"clockInEvent": {
207211
"dateTime": "2020-09-21T18:02:48.688Z",
208212
"atApprovedLocation": null,
213+
"isAtApprovedLocation": null,
209214
"notes": {
210215
"contentType": "text",
211216
"content": "ClockIn-OBO Shorbani"
@@ -214,6 +219,7 @@ Content-type: application/json
214219
"clockOutEvent": {
215220
"dateTime": "2021-05-27T18:16:14.766Z",
216221
"atApprovedLocation": null,
222+
"isAtApprovedLocation": null,
217223
"notes": {
218224
"contentType": "text",
219225
"content": "clock out notes"
@@ -224,6 +230,7 @@ Content-type: application/json
224230
"clockInEvent": {
225231
"dateTime": "2020-09-21T18:02:48.688Z",
226232
"atApprovedLocation": null,
233+
"isAtApprovedLocation": null,
227234
"notes": {
228235
"contentType": "text",
229236
"content": "ClockIn-OBO Shorbani"
@@ -232,6 +239,7 @@ Content-type: application/json
232239
"clockOutEvent": {
233240
"dateTime": "2021-05-27T18:16:14.766Z",
234241
"atApprovedLocation": null,
242+
"isAtApprovedLocation": null,
235243
"notes": {
236244
"contentType": "text",
237245
"content": "clock out notes"

api-reference/beta/api/timecard-post.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Content-type: application/json
7171
"onBehalfOfUserId":"a3601044-a1b5-438e-b742-f78d01d68a67",
7272
"clockInEvent":{
7373
"dateTime":"2019-03-18T00:00:00.000Z",
74-
"atApprovedLocation":true,
74+
"isAtApprovedLocation":true,
7575
"notes": {
7676
"content": "Started late due to traffic in CA 237",
7777
"contentType": "text"
@@ -90,7 +90,7 @@ Content-type: application/json
9090
},
9191
"start":{
9292
"dateTime":"2019-03-18T02:00:00.000Z",
93-
"atApprovedLocation":true,
93+
"isAtApprovedLocation":true,
9494
"notes": {
9595
"content": "Reduced break to make up for lost time",
9696
"contentType": "text"
@@ -173,6 +173,7 @@ Content-type: application/json
173173
"clockInEvent": {
174174
"dateTime": "2019-03-18T00:00:00.000Z",
175175
"atApprovedLocation": true,
176+
"isAtApprovedLocation": true,
176177
"notes": {
177178
"content": "Started late due to traffic in CA 237",
178179
"contentType": "text"
@@ -189,6 +190,7 @@ Content-type: application/json
189190
"start": {
190191
"dateTime": "2019-03-18T02:00:00.000Z",
191192
"atApprovedLocation": true,
193+
"isAtApprovedLocation": true,
192194
"notes": {
193195
"content": "Reduced break to make up for lost time",
194196
"contentType": "text"
@@ -201,6 +203,7 @@ Content-type: application/json
201203
"clockInEvent": {
202204
"dateTime": "2019-03-18T00:00:00.000Z",
203205
"atApprovedLocation": true,
206+
"isAtApprovedLocation": true,
204207
"notes": {
205208
"content": "Started late due to traffic in CA 237",
206209
"contentType": "text"
@@ -221,6 +224,7 @@ Content-type: application/json
221224
"start": {
222225
"dateTime": "2019-03-18T02:00:00.000Z",
223226
"atApprovedLocation": true,
227+
"isAtApprovedLocation": true,
224228
"notes": {
225229
"content": "Reduced break to make up for lost time",
226230
"contentType": "text"

api-reference/beta/api/timecard-replace.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ Content-type: application/json
7474
"notes": null,
7575
"clockInEvent": {
7676
"dateTime": "2021-05-21T21:58:41.327Z",
77-
"atApprovedLocation": null,
77+
"isAtApprovedLocation": null,
7878
"notes": {
7979
"contentType": "text",
8080
"content": "update sample notes"
8181
}
8282
},
8383
"clockOutEvent": {
8484
"dateTime": "2021-05-21T22:01:46.205Z",
85-
"atApprovedLocation": null,
85+
"isAtApprovedLocation": null,
8686
"notes": {
8787
"contentType": "text",
8888
"content": "update sample notes"
@@ -94,15 +94,15 @@ Content-type: application/json
9494
"notes": null,
9595
"start": {
9696
"dateTime": "2021-05-21T21:59:59.328Z",
97-
"atApprovedLocation": null,
97+
"isAtApprovedLocation": null,
9898
"notes": {
9999
"contentType": "text",
100100
"content": "update sample notes"
101101
}
102102
},
103103
"end": {
104104
"dateTime": "2021-05-21T22:01:10.205Z",
105-
"atApprovedLocation": null,
105+
"isAtApprovedLocation": null,
106106
"notes": {
107107
"contentType": "text",
108108
"content": "update sample notes"

0 commit comments

Comments
 (0)