Depends on your platform from which you’re running curl commands, but sometimes you need “ on start and end, with \” for inside ones.
Could try that instead of the single ‘ start and end.
(See Unable to learn dyson remote - #7 by residualimages for some examples of commands that have worked)