You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct Teams API spec — add to_destination param, fix date param names
- Rename start_time/end_time to start_date/end_date on activities and tests
endpoints to match actual server implementation (format: date, YYYY-MM-DD)
- Add missing to_destination query parameter to activities, tests, and
metrics schema endpoints with 202 response documentation
- Add missing POST /coaches/{coachId}/tests/search endpoint
- Add DataSentToDestination and TestSearchQuery schemas
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: teams.yml
+151-8Lines changed: 151 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -205,18 +205,30 @@ paths:
205
205
required: true
206
206
schema:
207
207
type: string
208
-
- name: start_time
208
+
- name: start_date
209
+
in: query
210
+
required: true
211
+
description: Start date for the query range (YYYY-MM-DD).
212
+
schema:
213
+
type: string
214
+
format: date
215
+
example: '2025-01-01'
216
+
- name: end_date
209
217
in: query
210
218
required: false
219
+
description: End date for the query range (YYYY-MM-DD). Defaults to start_date + 1 day if omitted.
211
220
schema:
212
221
type: string
213
-
format: date-time
214
-
- name: end_time
222
+
format: date
223
+
example: '2025-01-07'
224
+
- name: to_destination
215
225
in: query
216
226
required: false
227
+
description: When `true`, data is sent asynchronously to your configured webhook and the endpoint returns HTTP 202 with a reference ID. When `false` (default), data is returned inline in the response body.
217
228
schema:
218
229
type: string
219
-
format: date-time
230
+
enum: ['true', 'false']
231
+
default: 'false'
220
232
responses:
221
233
'200':
222
234
description: "List of activities within the specified time range for all athletes under the coach"
@@ -231,6 +243,12 @@ paths:
231
243
type: array
232
244
items:
233
245
$ref: '#/components/schemas/TeamActivity'
246
+
'202':
247
+
description: Data dispatch accepted. Returned when `to_destination=true`. Data will be sent to your configured webhook.
description: When `true`, data is sent asynchronously to your configured webhook and the endpoint returns HTTP 202 with a reference ID. When `false` (default), data is returned inline in the response body.
270
+
schema:
271
+
type: string
272
+
enum: ['true', 'false']
273
+
default: 'false'
248
274
responses:
249
275
'200':
250
276
description: Schema retrieved successfully.
@@ -259,6 +285,12 @@ paths:
259
285
type: array
260
286
items:
261
287
$ref: '#/components/schemas/MetricSchema'
288
+
'202':
289
+
description: Data dispatch accepted. Returned when `to_destination=true`. Data will be sent to your configured webhook.
description: Start date for the query range (YYYY-MM-DD).
316
+
schema:
317
+
type: string
318
+
format: date
319
+
example: '2025-01-01'
320
+
- name: end_date
281
321
in: query
282
322
required: false
323
+
description: End date for the query range (YYYY-MM-DD). Defaults to start_date + 1 day if omitted.
283
324
schema:
284
325
type: string
285
-
format: date-time
286
-
- name: end_time
326
+
format: date
327
+
example: '2025-01-07'
328
+
- name: to_destination
287
329
in: query
288
330
required: false
331
+
description: When `true`, data is sent asynchronously to your configured webhook and the endpoint returns HTTP 202 with a reference ID. When `false` (default), data is returned inline in the response body.
289
332
schema:
290
333
type: string
291
-
format: date-time
334
+
enum: ['true', 'false']
335
+
default: 'false'
292
336
responses:
293
337
'200':
294
338
description: "List of tests within the specified time range for all athletes under the coach"
@@ -303,6 +347,59 @@ paths:
303
347
type: array
304
348
items:
305
349
$ref: '#/components/schemas/Test'
350
+
'202':
351
+
description: Data dispatch accepted. Returned when `to_destination=true`. Data will be sent to your configured webhook.
summary: Search and filter tests for a specific coach
362
+
description: Returns tests matching the specified filters. Allows filtering by time range and athlete IDs.
363
+
parameters:
364
+
- name: coachId
365
+
in: path
366
+
required: true
367
+
schema:
368
+
type: string
369
+
- name: to_destination
370
+
in: query
371
+
required: false
372
+
description: When `true`, data is sent asynchronously to your configured webhook and the endpoint returns HTTP 202 with a reference ID. When `false` (default), data is returned inline in the response body.
373
+
schema:
374
+
type: string
375
+
enum: ['true', 'false']
376
+
default: 'false'
377
+
requestBody:
378
+
required: true
379
+
content:
380
+
application/json:
381
+
schema:
382
+
$ref: '#/components/schemas/TestSearchQuery'
383
+
responses:
384
+
'200':
385
+
description: Filtered list of tests matching the query.
386
+
content:
387
+
application/json:
388
+
schema:
389
+
allOf:
390
+
- $ref: '#/components/schemas/CoachDataReturned'
391
+
- type: object
392
+
properties:
393
+
data:
394
+
type: array
395
+
items:
396
+
$ref: '#/components/schemas/Test'
397
+
'202':
398
+
description: Data dispatch accepted. Returned when `to_destination=true`. Data will be sent to your configured webhook.
0 commit comments