Currently the API does not return any value when successfully creating a host or service downtime.
This should be changed and the ID should be returned, @mschlenker.
Currently you have to search for the downtime right after creating it when you need the ID.
There is also currently no API endpoint to “update” a scheduled downtime.