Can you specify the hostname as part of blueprint or deployment profile instead? This way you don't need to set that as part of API request.
I filed a bug about lack of support to set hostname as part of public REST APIs.
Thanks Rags
This posting is provided as is and confers to no rights.