-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpeloton-api.yaml
2444 lines (2412 loc) · 71.2 KB
/
peloton-api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.1
info:
title: Unofficial Peloton API
description: "This is an unofficial/unsupported peloton API that was documented through Swagger Inspector. Some URLs are protected, and you will be required to post to the Login endpoint to obtain a session ID which then gets sent in future requests as your peloton_session_id cookie. You will also need a peloton-platform header for some of the newer requests, which for now should be set to 'web'"
version: 0.3.0
servers:
- url: "https://api.onepeloton.com"
paths:
/auth/login:
post:
description: The session_id that results from this login will be needed as a 'peloton_session_id' cookie on subsequent non-public requests to the API.
requestBody:
content:
application/json:
schema:
type: object
properties:
password:
type: string
username_or_email:
type: string
examples:
"0":
value: |-
{
"username_or_email": "MyUserName",
"password": "passwd"
}
responses:
"200":
description: User and Session Details
content:
application/json:
schema:
$ref: "#/components/schemas/AuthDetails"
tags:
- authentication
summary: Authenticates a user and creates a session
/auth/check_session:
get:
security:
- sessionCookie: []
responses:
"200":
description: Session and Profile
content:
application/json:
schema:
type: object
tags:
- authentication
- users
/api/user/{userId}/image_upload_url:
get:
security:
- sessionCookie: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: b3f902e4b6c54777a73b61471ebed471
responses:
"200":
description: URL of image upload and new image on S3.
content:
application/json:
schema:
type: object
properties:
upload_url:
type: string
new_image_url:
type: string
tags:
- users
summary: Get upload URL to S3 and URL of uploaded image. You do a PUT to this upload_url with the image to upload.
/api/user/{userId}/followers:
get:
security:
- sessionCookie: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: b3f902e4b6c54777a73b61471ebed471
- name: page
required: false
in: query
schema:
type: integer
example: 0
- name: limit
required: false
in: query
schema:
type: integer
example: 20
responses:
"200":
description: List of followers for a given user
content:
application/json:
schema:
$ref: "#/components/schemas/ProfileList"
tags:
- users
summary: Get followers for a given user
/api/browse_categories:
get:
description: Get all workout categories
parameters:
- name: library_type
in: query
schema:
type: string
example: on_demand
tags:
- reference
responses:
"200":
description: List of categories
content:
application/json:
schema:
type: object
properties:
browse_categories:
type: array
items:
type: object
properties:
icon_url:
type: string
name:
type: string
list_order:
type: integer
portal_image_url:
type: string
id:
type: string
slug:
type: string
examples:
"0":
value: >-
{"browse_categories": [{"id":
"945f74385ce14e19bb554c6664a24a73", "name": "Meditation",
"slug": "meditation", "list_order": 2, "icon_url":
"https://browse-categories-images-prod.s3.amazonaws.com/c63f80f6f68747ba9a23c0c878a06479",
"portal_image_url":
"https://browse-categories-images-prod.s3.amazonaws.com/4a18caebf19341faaa29d4e23ac4c09c"},
{"id": "2e56ee670dd34cc9bbc95d3704ca90ad", "name":
"Running", "slug": "running", "list_order": 7, "icon_url":
"https://browse-categories-images-prod.s3.amazonaws.com/cb92005fe5e14531a359c3d31de9e5d0",
"portal_image_url":
"https://browse-categories-images-prod.s3.amazonaws.com/fffd66e282f04952be2a79c2a9221547"},
]}
/api/instructor:
get:
description: Gets a list of instructors (Note that paging starts at 0)
parameters:
- name: page
in: query
schema:
type: integer
- name: limit
in: query
schema:
type: integer
responses:
"200":
description: Auto generated using Swagger Inspector
content:
application/json:
schema:
$ref: "#/components/schemas/InstructorList"
tags:
- instructors
- reference
summary: Get a list of instructors.
/api/user/{userId}/following:
get:
description: Get User by ID
security:
- sessionCookie: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: b3f902e4b6c54777a73b61471ebed471
- name: joins
required: false
in: query
schema:
type: string
- name: page
required: false
in: query
schema:
type: integer
example: 0
- name: limit
required: false
in: query
schema:
type: integer
example: 20
responses:
"200":
description: Auto generated using Swagger Inspector
content:
application/json:
schema:
$ref: "#/components/schemas/ResultList"
tags:
- users
/api/user/{userId}/facebook_friends:
get:
description: Get Facebook friends for user by ID
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: b3f902e4b6c54777a73b61471ebed471
responses:
"200":
description: List of users with facebook profile
content:
application/json:
schema:
$ref: "#/components/schemas/FacebookProfileList"
tags:
- users
/api/user/{userId}/calendar:
get:
description: Get activity calendar for a given user
security:
- sessionCookie: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: b3f902e4b6c54777a73b61471ebed471
tags:
- users
responses:
"200":
description: Auto generated using Swagger Inspector
content:
application/json:
schema:
type: object
properties:
months:
type: array
items:
type: object
properties:
month:
type: integer
year:
type: integer
active_days:
type: array
items:
type: integer
examples:
"0":
value: >-
{"months": [{"year": 2020, "month": 4, "active_days": [1, 2,
3, 4, 5, 6, 7, 8, 9, 10]}, {"year": 2020, "month": 3,
"active_days": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31]}, {"year": 2020, "month": 2, "active_days": [1,
2, 3, 4, 6, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29]}]}
/api/instructor/{instructorId}:
get:
description: Get instructor by ID
parameters:
- name: instructorId
in: path
required: true
schema:
type: string
example: a8c56f162c964e9392568bc13828a3fb
responses:
"200":
description: Auto generated using Swagger Inspector
content:
application/json:
schema:
type: object
properties:
facebook_fan_page:
type: string
jumbotron_url_ios:
type: string
about_image_url:
type: string
bio:
type: string
strava_profile:
type: string
jumbotron_url: {}
quote:
type: string
web_instructor_list_gif_image_url: {}
list_order:
type: integer
is_filterable:
type: boolean
id:
type: string
first_name:
type: string
instructor_hero_image_url:
type: string
spotify_playlist_uri:
type: string
ios_instructor_list_display_image_url:
type: string
is_visible:
type: boolean
short_bio:
type: string
image_url:
type: string
coach_type:
type: string
last_name:
type: string
instagram_profile:
type: string
featured_profile:
type: boolean
music_bio:
type: string
twitter_profile:
type: string
jumbotron_url_dark:
type: string
web_instructor_list_display_image_url:
type: string
user_id:
type: string
background:
type: string
ordered_q_and_as:
type: array
items:
type: array
items:
type: string
name:
type: string
bike_instructor_list_display_image_url: {}
film_link:
type: string
life_style_image_url:
type: string
fitness_disciplines:
type: array
items:
type: string
username:
type: string
examples:
"0":
value: >-
{"is_visible": true, "last_name": "Greenberg",
"featured_profile": true, "list_order": 6, "music_bio": "",
"id": "a8c56f162c964e9392568bc13828a3fb", "first_name":
"Anna", "user_id": "026d817a66704ea6b5bc148ba0b803f7",
"instagram_profile": "", "jumbotron_url_dark":
"https://s3.amazonaws.com/workout-metric-images-prod/6081ded723014f1c9e89841efac9dfd7",
"jumbotron_url": null, "spotify_playlist_uri":
"spotify:user:onepeloton:playlist:4VFujVb67VlWFfSrz3BcWl",
"web_instructor_list_gif_image_url": null, "strava_profile":
"", "life_style_image_url":
"https://s3.amazonaws.com/workout-metric-images-prod/b07a4ad3f0504d589f13d760ce010cd3",
"instructor_hero_image_url":
"https://s3.amazonaws.com/workout-metric-images-prod/7e14b96b609f4e47b497ef9b844a5b98",
"username": "agreenberg", "bio": "When Anna first turned to
yoga, she felt a switch turn on inside of her. As she built
a deeper connection with her mind and body, she began
accomplishing things she never knew possible. Moved to share
the transformative properties of the practice with others,
Anna dove head first into yoga. Anna has crafted a unique
teaching style that uses movement and music to help her
Members connect to the same healing properties of yoga that
she has experienced over the years. Anna is a prominent
teacher trainer, workshop leader and instructor in NYC.",
"quote": "Look for balance but always be willing to fall.",
"twitter_profile": "", "jumbotron_url_ios":
"https://s3.amazonaws.com/workout-metric-images-prod/028db643b6d0412f898afe791a0d9d34",
"background": "My classes combine heat building movement
with precise, focused instruction for Members to find
stability and space in their bodies and minds. Watching
Members grow and thrive on the mat and in their lives is
what inspires me to teach!", "film_link": "",
"web_instructor_list_display_image_url":
"https://s3.amazonaws.com/workout-metric-images-prod/a423930b36cc4794b1d1ea836f33768c",
"facebook_fan_page": "", "name": "Anna Greenberg",
"ios_instructor_list_display_image_url":
"https://s3.amazonaws.com/workout-metric-images-prod/3c7b43033049475b9b3b95d67848c683",
"bike_instructor_list_display_image_url": null,
"is_filterable": true, "about_image_url":
"https://s3.amazonaws.com/workout-metric-images-prod/76f3fbaa9c6448579f7d0d9bed8a5b53",
"fitness_disciplines": ["meditation", "yoga"], "short_bio":
"\u201cLook for balance but always be willing to
fall\u201d", "ordered_q_and_as": [["How Do You Motivate?",
"I aim to inspire people to do their best and let go of the
results. Yoga is not a competition or performance, it\u2019s
just for you (how great is that?). It\u2019s a tool to
strengthen your relationship with yourself."], ["Outside of
Peloton", "When I\u2019m not standing on my hands, you can
catch me traveling the world whenever, and wherever I can. I
enjoy being in nature, hiking, biking and just walking
around and taking it all in."], ["", ""]], "image_url":
"https://s3.amazonaws.com/workout-metric-images-prod/129eb1916178457fac5a39476a1211ce",
"coach_type": "peloton_coach"}
tags:
- instructors
/api/user/{userNameOrId}:
get:
description: Gets Peloton user data. If a session ID is supplied, more data is returned, but being authenticated is optional for this request
security:
- {}
- sessionCookie: []
tags:
- users
- public
parameters:
- name: userNameOrId
in: path
required: true
schema:
type: string
example: DovOps
- name: is_onboarded
in: query
schema:
type: string
example: stacked_classes
description: This appears to be some extra feature query to add more detail to the profile response.
responses:
"200":
description: Auto generated using Swagger Inspector
/api/user/{userId}/workouts:
get:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: ride_id
in: query
schema:
type: string
- name: joins
in: query
schema:
type: string
example: peloton.ride
- name: limit
in: query
schema:
type: string
example: "1"
- name: page
in: query
schema:
type: string
example: "0"
- name: sort_by
in: query
schema:
type: string
example: "-created"
tags:
- users
responses:
"200":
description: Scrollable Workout List
content:
application/json:
schema:
$ref: "#/components/schemas/WorkoutList"
/api/workout/{workoutId}:
get:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
parameters:
- name: workoutId
in: path
required: true
schema:
type: string
example: "389bd6e86e2e4e49b6a501d875599cf9"
- name: joins
in: query
schema:
type: string
example: "peloton,peloton.ride,peloton.ride.instructor,user"
responses:
"200":
description: Retrieves Workout Details
content:
application/json:
schema:
$ref: "#/components/schemas/WorkoutDetails"
tags:
- workouts
/api/workout/{workoutId}/performance_graph:
get:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
parameters:
- name: workoutId
in: path
required: true
schema:
type: string
example: "389bd6e86e2e4e49b6a501d875599cf9"
- name: every_n
in: query
schema:
type: string
example: "5"
- name: joins
in: query
schema:
type: string
tags:
- workouts
responses:
"200":
description: Auto generated using Swagger Inspector
/api/me:
get:
description: Get my record
security:
- sessionCookie: []
- pelotonPlatform: []
tags:
- users
parameters:
- name: is_onboarded
in: query
schema:
type: string
example: stacked_classes
description: This appears to be some extra feature query to add more detail to the profile response.
responses:
"200":
description: Auto generated using Swagger Inspector
/api/user/search:
get:
description: Search for peloton members as you would on the app/bike
security:
- sessionCookie: []
- pelotonPlatform: []
tags:
- users
parameters:
- name: user_query
in: query
schema:
type: string
example: DovOps
description: Text to search
- name: limit
in: query
schema:
type: integer
example: 40
default: 40
description: Number of results to return
responses:
"200":
description: Search Results
content:
application/json:
schema:
$ref: "#/components/schemas/ProfileList"
/api/user/change_relationship:
post:
description: Change relationship with another user (used for following/unfollowing)
security:
- sessionCookie: []
- pelotonPlatform: []
tags:
- users
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/RelationshipRequest"
responses:
"200":
description: Relationship
content:
application/json:
schema:
$ref: "#/components/schemas/RelationshipResult"
/api/user/{userId}/challenges/current:
get:
description: Get list of current challenges
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: has_joined
in: query
schema:
type: boolean
example: "false"
responses:
"200":
description: Auto generated using Swagger Inspector
tags:
- users
- challenge
/api/user/{userId}/challenges/upcoming:
get:
description: Get list of current challenges
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: has_joined
in: query
schema:
type: boolean
example: "false"
responses:
"200":
description: Auto generated using Swagger Inspector
tags:
- users
- challenge
/api/user/{userId}/challenges/{challengeId}/join:
post:
description: Join a challenge
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: challengeId
in: path
required: true
schema:
type: string
example: "4ee56696ffcb442592607af5004503e3"
responses:
"200":
description: Empty 200 response
tags:
- users
- challenge
/api/user/{userId}/challenges/{challengeId}/leave:
post:
description: Leave a challenge
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: challengeId
in: path
required: true
schema:
type: string
example: "4ee56696ffcb442592607af5004503e3"
responses:
"200":
description: Empty 200 response
tags:
- users
- challenge
/api/user/{userId}/challenges/{challengeId}:
get:
description: Get details for a challenge
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: challengeId
in: path
required: true
schema:
type: string
example: "4ee56696ffcb442592607af5004503e3"
responses:
"200":
description: Get challenge details, summary, participants, and progress
tags:
- users
- challenge
/api/user/{userId}/challenges/{challengeId}/friends:
get:
description: Get friends list and their badges for a challenge
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: challengeId
in: path
required: true
schema:
type: string
example: "4ee56696ffcb442592607af5004503e3"
responses:
"200":
description: Get friends list and their progress in a challenge
tags:
- users
- challenge
/api/user/{userId}/achievements:
get:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
responses:
"200":
description: Auto generated using Swagger Inspector
tags:
- users
/api/user/{userId}/overview:
get:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
- name: version
in: query
required: false
schema:
type: integer
default: 1
responses:
"200":
description: User Overview
content:
application/json:
schema:
$ref: "#/components/schemas/UserOverview"
tags:
- users
/api/favorites/create:
post:
description: Bookmark a workout/ride
security:
- sessionCookie: []
- pelotonPlatform: []
requestBody:
content:
application/json:
schema:
type: object
properties:
ride_id:
type: string
examples:
"0":
value: '{"ride_id":"55214456a1984c5885a087021e3f67b7"}'
responses:
"200":
description: empty response means this was successful
tags:
- favorites
/api/v2/user/subscriptions:
get:
description: Get My Subscriptions
security:
- sessionCookie: []
- pelotonPlatform: []
responses:
"200":
description: Auto generated using Swagger Inspector
tags:
- users
/api/user/{userId}/settings:
get:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
responses:
"200":
description: Auto generated using Swagger Inspector
content:
application/json:
schema:
$ref: "#/components/schemas/UserSettings"
tags:
- users
/api/user/{userId}/referral_history:
get:
description: All referrals made by this user
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: userId
in: path
required: true
schema:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
responses:
"200":
description: Coupon code and referrals made
content:
application/json:
schema:
type: object
tags:
- users
/api/reservation:
post:
description: Count me in for an upcoming live or encore ride.
summary: Reserve a spot in an upcoming scheduled ride
security:
- sessionCookie: []
- pelotonPlatform: []
requestBody:
content:
application/json:
schema:
type: object
properties:
user_id:
type: string
example: "b3f902e4b6c54777a73b61471ebed471"
peloton_id:
type: string
example: "ea3849f5029449b685da71daab1d0272"
location:
type: string
example: "remote"
responses:
"200":
description: Reservation Object
content:
application/json:
schema:
$ref: "#/components/schemas/Reservation"
tags:
- reservations
/api/reservation/{reservationId}:
delete:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: reservationId
in: path
required: true
schema:
type: string
example: "bfabe9f63fe249dd8a2cb9c1a9e0af79"
responses:
"200":
description: Auto generated using Swagger Inspector
content:
application/json:
schema:
type: object
properties:
deleted:
type: boolean
examples:
"0":
value: '{"deleted": true}'
tags:
- reservations
/api/peloton/{reservationId}:
get:
description: Auto generated using Swagger Inspector
security:
- sessionCookie: []
- pelotonPlatform: []
parameters:
- name: reservationId
in: path
required: true
schema:
type: string
example: "bfabe9f63fe249dd8a2cb9c1a9e0af79"
responses:
"200":
description: Auto generated using Swagger Inspector
content:
application/json:
schema:
type: object
properties:
pedaling_start_time:
type: integer
ride_id:
type: string
server_time:
type: integer
is_encore:
type: boolean
total_workouts:
type: integer
end_time: