Check command API response command_id parametar

We upgraded Director (finally) from 1.7.2 to 1.10.1 (we also upgraded the Icinga2 but I don’t know which version was before the upgrade) but some of our automation scripts now fail.

The cause for this is that before the upgrade, when we would make an API request for the command object, for example: https://icingaendpoint:port/icingaweb2/director/command?name=check_beat_stats
The response would also contain “command_id” for each command argument, but after the upgrade this doesn’t happen any more, the “command_id” isn’t returned in the response.

Is there a way to get the command_id" as a part of the response, as it was before we upgraded?
We have a bunch of scripts and it would be great if we don’t have to rewrite them all…

Thank you.