Setting downtime via API not working (parsing errors)

Hi,
we are using Icinga 2.9.5
I am trying to set a downtime for multiple hosts via the API. In the end I want to add the curl to our deployment-pipeline, so that there will be an automatic downtime during the deployment.

I played around with the provided example from this page:
https://icinga.com/docs/icinga-2/latest/doc/12-icinga2-api/#schedule-downtime

But all I get, every time I try it, is parsing errors. It´s a bit annopying to me, since I use the exact command, which is provided. Could you please enlighten me?

curl -vvv -k -s -S -i --cert /cerificate.local.crt --key /certificate.local.key -H ‘Accept: application/json’
-X POST ‘https://monitoring:5665/v1/actions/schedule-downtime
-d “$(jo -p pretty=true type=Host filter=“match("server", host.name)” all_services=true author=Klaus comment=“API-Test” fixed=true start_time=$(date +%s -d “+0 hour”) end_time=$(date +%s -d “+1 hour”))”

ERROR:
{“error”:400,“status”:“Invalid request body: Error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: ‘b’\n”}