I would think it is not quoted correctly, possible single quotes around it may do the trick. or try @Colin possible solution. Which for some weird reason he replied to me and not you.
Oops, Sorry. I thought it was the OP asking if the quotes should be there.
@Colin
This fixed the output (see below) and without echo it is also working in practice
curl -X PUT https://api.mcs3.miele.com/v1/devices/000712266404/actions -H accept: */* -H Authorization: Bearer NL_47bcbe885880a6abb982f2bbe757dcc5 -H Content-Type: application/json -d {"targetTemperature": [{"zone":1,"value":6}]}
Thank you so much for this. Much appreciated.
I must work out where the quotes went, I don't like not understanding something.
I ment around the json not to replace the double quotes. Not sure which way you went.
@colin I did read something the other day about -d and --data acting differently, can not remember what it was though
@E1cid I did replace the quotes
@Colin
Let me know how I can help with that
I never said or meant to replace the quotes, as the would not be a valid JSON
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.