Skip to content

How to pass a parameter with command ? #246

Closed Answered by ilexpl01
ilexpl01 asked this question in Q&A
Discussion options

You must be logged in to vote

After 2 hours:

curl -i -H "Authorization: Bearer -----------------------------------" -X POST "{URL}:8080/api/v1/cars/1/command/set_charge_limit" --data '{"percent" : "80"}'

other example (setting charging amp):

curl -i -H "Authorization: Bearer -------------------------------" -X POST "{URL}:8080/api/v1/cars/1/command/set_charging_amps" --data '{"charging_amps": "5"}'

No further questions ;P

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ilexpl01
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants