-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenapi.yaml
More file actions
2348 lines (2346 loc) · 62 KB
/
openapi.yaml
File metadata and controls
2348 lines (2346 loc) · 62 KB
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: Tesla Model S JSON API
description: 'TODO: Add a description'
version: "1.0"
servers:
- url: https://owner-api.teslamotors.com/
paths:
/oauth/token:
post:
tags:
- Authentication
summary: Get an Access Token
description: |-
Performs the login. Takes in an plain text email and password, matching the owner's login information for [https://my.teslamotors.com/user/login](https://my.teslamotors.com/user/login).
Returns a `access_token` which is passed along as a header with all future requests to authenticate the user.
You must provide the `Authorization: Bearer {access_token}` header in all other requests.
The current client ID and secret are [available here](http://pastebin.com/YiLPDggh)
operationId: CreateOauthToken
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAccessTokenRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAccessTokenResponse'
x-codegen-request-body-name: body
/api/1/vehicles:
get:
tags:
- Vehicles
summary: List all Vehicles
description: Retrieve a list of your owned vehicles (includes vehicles not yet
shipped!)
operationId: GetVehicles
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/GetVehiclesResponse'
/api/1/vehicles/{vehicle_id}:
get:
tags:
- Vehicles
summary: Retrieve a vehicle
description: Retrieve a specific vehicle
operationId: GetVehicle
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleResponse'
example:
response:
id: 321
option_codes: MS01,RENA,TM00,DRLH,PF00,BT85,PBCW,RFPO,WT19,IBMB,IDPB,TR00,SU01,SC01,TP01,AU01,CH00,HP00,PA00,PS00,AD02,X020,X025,X001,X003,X007,X011,X013
user_id: 123
vehicle_id: 1234567890
vin: 5YJSA1CN5CFP01657
tokens:
- x
- x
state: online
/api/1/vehicles/{vehicle_id}/mobile_enabled:
get:
tags:
- Vehicles
summary: Mobile Access
description: Determines if mobile access to the vehicle is enabled.
operationId: GetVehicleMobileEnabled
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/MobileAccessResponse'
/api/1/vehicles/{vehicle_id}/data_request/charge_state:
get:
tags:
- Vehicles
summary: Charge State
description: Returns the state of charge in the battery.
operationId: GetVehicleChargeState
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeStateResponse'
/api/1/vehicles/{vehicle_id}/data_request/climate_state:
get:
tags:
- Vehicles
summary: Climate Settings
description: Returns the current temperature and climate control state.
operationId: GetVehicleClimateState
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/ClimateSettingsResponse'
/api/1/vehicles/{vehicle_id}/data_request/drive_state:
get:
tags:
- Vehicles
summary: Driving and Position
description: Returns the driving and position state of the vehicle.
operationId: GetVehicleDriveState
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/DriveStateResponse'
/api/1/vehicles/{vehicle_id}/data_request/gui_settings:
get:
tags:
- Vehicles
summary: GUI Settings
description: Returns various information about the GUI settings of the car,
such as unit format and range display.
operationId: GetVehicleGuiSettings
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/GuistateResponse'
/api/1/vehicles/{vehicle_id}/data_request/vehicle_state:
get:
tags:
- Vehicles
summary: Vehicle State
description: Returns the vehicle's physical state, such as which doors are open.
operationId: GetVehicleState
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleStateResponse'
/api/1/vehicles/{vehicle_id}/data_request/vehicle_config:
get:
tags:
- Vehicles
summary: Vehicle Config
description: Returns the vehicle's configuration
operationId: GetVehicleConfig
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleConfigResponse'
/api/1/vehicles/{vehicle_id}/data:
get:
tags:
- Vehicles
summary: Vehicle Data
description: Returns all vehicle ∂ata, potentially cached
operationId: GetVehicleData
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/VehicleDataResponse'
408:
description: Timeout
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/1/vehicles/{vehicle_id}/wake_up:
post:
tags:
- Vehicle Commands
summary: Wake Up Car
description: Wakes up the car from the sleep state. Necessary to get some data
from the car.
operationId: WakeUpVehicle
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/WakeUpResponse'
/api/1/vehicles/{vehicle_id}/command/wake_up:
post:
tags:
- Vehicle Commands
summary: Wake Up Car
description: Wakes up the car from the sleep state. Necessary to get some data
from the car.
operationId: WakeUpVehicleCommand
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/set_valet_mode:
post:
tags:
- Vehicle Commands
summary: Set Valet Mode
description: |-
Sets valet mode on or off with a PIN to disable it from within the car. Reuses last PIN from previous valet session.
Valet Mode limits the car's top speed to 70MPH and 80kW of acceleration power. It also disables Homelink, Bluetooth and
Wifi settings, and the ability to disable mobile access to the car. It also hides your favorites, home, and work
locations in navigation.
operationId: ToggleValetMode
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SetValetRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/reset_valet_pin:
post:
tags:
- Vehicle Commands
summary: Reset Valet PIN
description: Resets the PIN set for valet mode, if set.
operationId: ResetValetPin
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/charge_port_door_open:
post:
tags:
- Vehicle Commands
summary: Open Charge Port
description: Opens the charge port. Does not close the charge port (for now...).
This endpoint also unlocks the charge port if it's locked.
operationId: ToggleChargePort
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/charge_standard:
post:
tags:
- Vehicle Commands
summary: Set Charge Limit to Standard
description: Set the charge mode to standard (90% under the new percentage system
introduced in 4.5).
operationId: SendStandardChargeLimit
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/charge_max_range:
post:
tags:
- Vehicle Commands
summary: Set Charge Limit to Max Range
description: Set the charge mode to max range (100% under the new percentage
system introduced in 4.5). Use sparingly!
operationId: SetMaxChargeLimit
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/set_charge_limit:
post:
tags:
- Vehicle Commands
summary: Set Charge Limit
description: Set the charge limit to a custom percentage.
operationId: SetChargeLimit
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SetChargeLimitRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/charge_start:
post:
tags:
- Vehicle Commands
summary: Start Charging
description: Start charging. Must be plugged in, have power available, and not
have reached your charge limit.
operationId: StartCharge
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/charge_stop:
post:
tags:
- Vehicle Commands
summary: Stop Charging
description: Stop charging. Must already be charging.
operationId: StopCharge
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/nearby_charging_sites:
get:
tags:
- Vehicles
summary: Get Nearby Chargers
description: Get a list of nearby charging sites
operationId: NearbyChargers
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/NearbyChargerResponse'
/api/1/vehicles/{vehicle_id}/command/flash_lights:
post:
tags:
- Vehicle Commands
summary: Flash Lights
description: Flash the lights once.
operationId: FlashLights
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/honk_horn:
post:
tags:
- Vehicle Commands
summary: Honk Horn
description: Honk the horn once.
operationId: HonkHorn
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/door_unlock:
post:
tags:
- Vehicle Commands
summary: Unlock Doors
description: Unlock the car's doors.
operationId: UnlockDoors
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/door_lock:
post:
tags:
- Vehicle Commands
summary: Lock Doors
description: Lock the car's doors.
operationId: LockDoors
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/set_temps:
post:
tags:
- Vehicle Commands
summary: Set Temperature
description: Set the temperature target for the HVAC system.
operationId: SetTemperatures
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SetTempsRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/auto_conditioning_start:
post:
tags:
- Vehicle Commands
summary: Start HVAC System
description: Start the climate control system. Will cool or heat automatically,
depending on set temperature.
operationId: StartHVAC
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/auto_conditioning_stop:
post:
tags:
- Vehicle Commands
summary: Stop HVAC System
description: Stop the climate control system.
operationId: StopHVAC
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/remote_seat_heater_request:
post:
tags:
- Vehicle Commands
summary: Set Seat Heater Level
description: Set the heating level of a seat heater
operationId: RemoteSeatHeaterRequest
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RemoteSeatHeaterRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/remote_steering_wheel_heater_request:
post:
tags:
- Vehicle Commands
summary: Toggle Steering Wheel Heater
description: Toggle the steering wheel heater
operationId: RemoteSteeringWheelHeaterRequest
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RemoteSteeringWheelHeaterRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/sun_roof_control:
post:
tags:
- Vehicle Commands
summary: Move Pano Roof
description: Controls the car's panoramic roof, if installed.
operationId: OpenSunroof
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MovePanoRoofRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/remote_start_drive:
post:
tags:
- Vehicle Commands
summary: Remote Start
description: Start the car for keyless driving. Must start driving within 2
minutes of issuing this request.
operationId: RemoteStart
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RemoteStartRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/actuate_trunk:
post:
tags:
- Vehicle Commands
summary: Open Trunk/Frunk
description: Open the trunk or frunk. Currently inoperable.
operationId: OpenTrunk
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/OpenTrunkRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
example:
response:
result: true
reason: ""
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/speed_limit_activate:
post:
tags:
- Vehicle Commands
summary: Activate Speed Limit
description: Activates Speed Limit
operationId: ActivateSpeedLimit
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SpeedLimitRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/speed_limit_deactivate:
post:
tags:
- Vehicle Commands
summary: Deactivate Speed Limit
description: Deactivates Speed Limit
operationId: DeactivateSpeedLimit
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SpeedLimitRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/speed_limit_set_limit:
post:
tags:
- Vehicle Commands
summary: Set Speed Limit
description: Sets Speed Limit
operationId: SetSpeedLimit
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SetSpeedLimitRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/speed_limit_clear_pin:
post:
tags:
- Vehicle Commands
summary: Clear Speed Limit Pin
description: Clears Speed Limit Pin
operationId: ClearSpeedLimitPin
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SpeedLimitRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/navigation_request:
post:
tags:
- Vehicle Commands
summary: Send Navigation Request
description: Sends Navigation Request to Vehicle
operationId: NavigationRequest
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NavigationRequestRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/share:
post:
tags:
- Vehicle Commands
summary: Share data to Vehicle
description: Sends Data to Vehicle (v10 only)
operationId: SharetoVehicle
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ShareRequest'
required: true
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
x-codegen-request-body-name: body
/api/1/vehicles/{vehicle_id}/command/media_toggle_playback:
post:
tags:
- Media Control
summary: Pause/Play Media
description: Pause/Play Media
operationId: MediaTogglePlayback
parameters:
- name: vehicle_id
in: path
description: The id of the Vehicle.
required: true
schema:
type: string
responses:
200:
description: ""
content:
application/json:
schema:
$ref: '#/components/schemas/CommandResponse'
/api/1/vehicles/{vehicle_id}/command/media_next_track: