timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
2k stars 533 forks source link

Valet mode is incomplete #25

Closed jonasman closed 8 years ago

jonasman commented 8 years ago

http://docs.timdorr.apiary.io/#reference/vehicle-commands/set-valet-mode/set-valet-mode

The valet mode API makes references to 3 parameters but the URI only shows 1. Can you update it? I don't have a car to test :)

timdorr commented 8 years ago

The parameters go in the POST body, just like every other command.

jonasman commented 8 years ago

This one https://owner-api.teslamotors.com/api/1/vehicles/vehicle_id/command/set_charge_limit?percent=limit_value goes on the GET part, is this incorrect?

timdorr commented 8 years ago

That is also correct. It's possible to have params in both the body and the query string.